home · contact · privacy
Server: Simplify rule for when to update worldstate file.
[plomrogue] / src / server / io.c
index c8f5167a24a3a2bf4e5dddc849063e3ed83ca0a5..00afb3cc28fa16d09cd053b38dd5bd4333bf37e0 100644 (file)
@@ -304,10 +304,10 @@ extern char * io_round()
     {
         return get_message_from_queue();
     }
-    if (world.turn != world.last_update_turn)
+    if (world.do_update)
     {
         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])