home · contact · privacy
Server: Refactor writing of field of view to Thing struct.
[plomrogue] / src / server / init.c
index 01950bcac3111f455dabd97eb515090e8c89d3e2..42ec699a921d067f237c7eb67c9bafaa78454463 100644 (file)
@@ -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;