X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Finit.c;h=49ba22a62732b0f5c818536cd77aac809420ace4;hb=22ab49928288775acfd1224eeb8b8014158efd92;hp=01950bcac3111f455dabd97eb515090e8c89d3e2;hpb=1cb57a35a3b3cc4ec8870531ca254a655c0bdda2;p=plomrogue diff --git a/src/server/init.c b/src/server/init.c index 01950bc..49ba22a 100644 --- a/src/server/init.c +++ b/src/server/init.c @@ -26,7 +26,7 @@ #include "things.h" /* Thing, ThingType, free_things(), add_things(), * get_thing_id_action_id_by_name() */ -#include "run.h" /* obey_msg(), io_loop() */ +#include "run.h" /* obey_msg(), io_loop(), record() */ #include "world.h" /* global world */ @@ -215,7 +215,10 @@ extern uint8_t remake_world() struct Thing * t; for (t = world.things; NULL != t; t = t->next) { - t->fov_map = t->lifepoints ? build_fov_map(t) : NULL; + if (t->lifepoints) + { + build_fov_map(t); + } } world.turn = 1; world.do_update = 1; @@ -254,4 +257,5 @@ extern void run_game() } err_line_zero(); io_loop(); + record(NULL, 1); }