home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Simplify rule for when to update worldstate file.
[plomrogue]
/
src
/
server
/
io.c
diff --git
a/src/server/io.c
b/src/server/io.c
index c8f5167a24a3a2bf4e5dddc849063e3ed83ca0a5..00afb3cc28fa16d09cd053b38dd5bd4333bf37e0 100644
(file)
--- a/
src/server/io.c
+++ b/
src/server/io.c
@@
-304,10
+304,10
@@
extern char * io_round()
{
return get_message_from_queue();
}
{
return get_message_from_queue();
}
- if (world.
turn != world.last_update_turn
)
+ if (world.
do_update
)
{
update_worldstate_file();
{
update_worldstate_file();
- world.
last_update_turn = world.turn
;
+ world.
do_update = 0
;
}
read_file_into_queue();
if (world.queue_size && '\0' != world.queue[world.queue_size - 1])
}
read_file_into_queue();
if (world.queue_size && '\0' != world.queue[world.queue_size - 1])