home · contact · privacy
Server: Add ENEMY_FOV option (default: off) to force FOV on enemies.
[plomrogue] / src / server / map.c
index 36c446580205e67041237c3e950c8441d62b6ac4..52a9b0b7d11bdefafc9d4d7b3580101d69073ced 100644 (file)
@@ -156,3 +156,11 @@ extern uint8_t is_passable(struct yx_uint8 pos)
     }
     return passable;
 }
+
+
+
+extern uint16_t yx_to_map_pos(struct yx_uint8 * yx)
+{
+    return (yx->y * world.map.size.x) + yx->x;
+}
+