home · contact · privacy
Server: Refactor writing of field of view to Thing struct.
[plomrogue] / src / server / thing_actions.c
index bcf9e455f4d382d538633f75681f77b6d76d7b3d..8d6a802417ea6df95068892fe3b89b77cad7057f 100644 (file)
@@ -266,8 +266,7 @@ extern void actor_move(struct Thing * t)
     if (passable)
     {
         set_thing_position(t, target);
-        free(t->fov_map);
-        t->fov_map = build_fov_map(t);
+        build_fov_map(t);
     }
     if (t == get_player())
     {