From: Christian Heller Date: Thu, 20 Nov 2014 22:58:38 +0000 (+0100) Subject: Server: Send "WORLD_UPDATED" message in parallel to worldstate updating. X-Git-Tag: tce~584 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/feed.xml?a=commitdiff_plain;h=12768befa67d99e25dc67140e0bab13ee7c44ba6;p=plomrogue Server: Send "WORLD_UPDATED" message in parallel to worldstate updating. --- 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();