(weekday, daytime, daytime_range): New; replace kw_parse(). Parsing
is somewhat stricter. (is_wday_allowed, is_daytime_allowed, is_daytime_nar, min_to_next_daytime): New. (demand_update_time, scheduled_update_time, next_scheduled_time, update_time, gamehours): Use them to replace kw_parse(). (kw_parse): No longer used, remove.
This commit is contained in:
parent
ded3daf70d
commit
acdee1e3b6
12 changed files with 211 additions and 295 deletions
|
@ -119,7 +119,11 @@ extern void filetruncate(s_char *);
|
|||
/* hap_fact.c */
|
||||
extern double hap_fact(struct natstr *, struct natstr *);
|
||||
/* hours.c */
|
||||
extern int is_wday_allowed(int, char *);
|
||||
extern int is_daytime_allowed(int, char *);
|
||||
extern int gamehours(time_t);
|
||||
extern int is_daytime_near(int, char *, int);
|
||||
extern int min_to_next_daytime(int, char *);
|
||||
/* land.c */
|
||||
extern int has_units(coord, coord, natid, struct lndstr *);
|
||||
extern int has_units_with_mob(coord, coord, natid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue