home · contact · privacy
Client: Add auto-center of map on player each new turn (can be toggled).
[plomrogue] / src / client / map.c
index 7c2dcc384590df51b3dcfa46c9bcb577a6755e27..2a1d66f300a90d02eb09a0d9752b16dbbadfff38 100644 (file)
@@ -45,3 +45,10 @@ extern void map_center()
     win_map->center.y = world.player_pos.y;
     win_map->center.x = world.player_pos.x * 2;
 }
+
+
+
+extern void toggle_autofocus()
+{
+    world.focus_each_turn = world.focus_each_turn ? 0 : 1;
+}