]> git.pond.sub.org Git - empserver/commit
Represent logged in time in seconds rather than minutes
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 28 Oct 2008 14:48:25 +0000 (08:48 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 28 Oct 2008 14:48:25 +0000 (08:48 -0600)
commit14319b89ecd6c77c027cc9e4fc98c26b1e5e5e08
treefb0bf32d039a7e93857adf877638e21a68ff4af2
parent436328f641ab6f1f3c4052e3f451f10c26465e51
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.
include/nat.h
include/player.h
include/prototypes.h
src/lib/commands/edit.c
src/lib/commands/play.c
src/lib/common/nsc.c
src/lib/player/empdis.c
src/lib/player/player.c
src/lib/subs/natsub.c
src/scripts/nightly/patches/All/emptime.c.patch