]> git.pond.sub.org Git - empserver/commit
Provide an Empire clock with ETU resolution that is properly
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 14 Jul 2007 15:58:37 +0000 (15:58 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 14 Jul 2007 15:58:37 +0000 (15:58 +0000)
commitdd2daaaab30c242effdbd31b892aa4cc5781b05d
tree7b1f1b7a620dda910475c9c9ce510cff40c3464a
parent654335c62159b7d1a441126eeab5065efa071b93
Provide an Empire clock with ETU resolution that is properly
synchronized to updates (the one based on s_p_etu isn't synchronized):
(gamestr): New members game_turn, game_tick, game_rt.
(game_ca): New selectors for them.  Restrict tick and rt to deity for
now.  We'd need xdump update the Empire clock to make them safe for
players.
(game_record_update): New.
(update_main): Call it.
(game_tick_tick, game_tick_to_now, game_step_a_tick): New, not yet
used.
include/game.h
src/lib/common/game.c [new file with mode: 0644]
src/lib/global/nsc.c
src/lib/update/main.c