empserver/include
Ron Koenderink 875a80d14f Rewrite accounting of play time
Replace daychange() and gettimeleft() by update_timeused_login(),
update_timeused() and enforce_minimum_session_time().  The new
code doesn't assume the day is always 24 hours long which can
occur when transitioning into or out of DST and such.  Logging
in after more a multiple of 128 days now resets nat_timeused
properly.

Fix nat_timeused calculation on midnight rollover to include
the time since midnight.

struct natstr member nat_dayno and struct player member timeleft
are now unused, remove them.
2008-11-15 13:08:19 -06:00
..
budg.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
com.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
combat.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
commands.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
commodity.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
damage.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
distribute.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
econfig-spec.h New option RAILWAYS 2008-11-01 11:40:15 -04:00
empio.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
empobj.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
empthread.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
file.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
game.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
ioqueue.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
item.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
journal.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
land.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
loan.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
lost.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
lwp.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
map.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
match.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
misc.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
mission.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
nat.h Rewrite accounting of play time 2008-11-15 13:08:19 -06:00
news.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
nsc.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
nuke.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
optlist.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
path.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
plague.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
plane.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
player.h Rewrite accounting of play time 2008-11-15 13:08:19 -06:00
power.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
product.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
proto.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
prototypes.h Rewrite accounting of play time 2008-11-15 13:08:19 -06:00
queue.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
retreat.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
sect.h New option RAILWAYS 2008-11-01 11:40:15 -04:00
server.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
service.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
ship.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
tel.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
trade.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
treaty.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
types.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
unit.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
update.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
version.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
xdump.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00
xy.h Fix trailing whitespace 2008-09-17 21:31:40 -04:00