home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72f3dbe
)
Server: Send "WORLD_UPDATED" message in parallel to worldstate updating.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:58:38 +0000
(23:58 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 20 Nov 2014 22:58:38 +0000
(23:58 +0100)
src/server/io.c
patch
|
blob
|
history
diff --git
a/src/server/io.c
b/src/server/io.c
index d4c9faf860c4f05ae969a70ca95ef685c882b8fb..b333be8fc272ad4ab1204a9a950f2488e669df31 100644
(file)
--- 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();