From 12768befa67d99e25dc67140e0bab13ee7c44ba6 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 20 Nov 2014 23:58:38 +0100
Subject: [PATCH] Server: Send "WORLD_UPDATED" message in parallel to
 worldstate updating.

---
 src/server/io.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/server/io.c b/src/server/io.c
index d4c9faf..b333be8 100644
--- a/src/server/io.c
+++ b/src/server/io.c
@@ -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();
-- 
2.30.2