home · contact · privacy
Server: Send "WORLD_UPDATED" message in parallel to worldstate updating.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:58:38 +0000 (23:58 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:58:38 +0000 (23:58 +0100)
src/server/io.c

index d4c9faf860c4f05ae969a70ca95ef685c882b8fb..b333be8fc272ad4ab1204a9a950f2488e669df31 100644 (file)
@@ -24,6 +24,7 @@
 #include "../common/try_malloc.h" /* try_malloc() */
 #include "cleanup.h" /* set_cleanup_flag() */
 #include "hardcoded_strings.h" /* s */
+#include "run.h" /* send_to_outfile() */
 #include "things.h" /* Thing, ThingType, ThingInMemory, ThingAction,
                      * get_thing_type(), get_player()
                      */
@@ -356,6 +357,7 @@ extern char * io_round()
     if (world.do_update)
     {
         update_worldstate_file();
+        send_to_outfile("WORLD_UDPATED\n", 1);
         world.do_update = 0;
     }
     try_growing_queue();