Represent logged in time in seconds rather than minutes
This simplifies things. In particular, it gets rid of random rounding in getcommand(), which created a variation in the nightly build depending on whether the update starts before or after the deity logs out. Replace struct natstr member nat_minused by nat_timeused, and update cou_ca[] accordingly (this affects xdump nat). Replace player member minleft by timeleft, and getminleft() by gettimeleft(). Update getcommand(), daychange(), player_main(), status() accordingly, taking care not to change player output. Change edit country key 'u' to work in seconds.
This commit is contained in:
parent
436328f641
commit
14319b89ec
10 changed files with 40 additions and 42 deletions
|
@ -368,7 +368,7 @@ extern void init_player_commands(void);
|
|||
extern void log_last_commands(void);
|
||||
extern int gamedown(void);
|
||||
extern void daychange(time_t);
|
||||
extern int getminleft(time_t, int);
|
||||
extern int gettimeleft(time_t, int);
|
||||
/* more under Commands */
|
||||
/* empmod.c */
|
||||
/* init_nats.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue