home · contact · privacy
Client: Fix horizontal wobbliness of auto-centering on player.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 8 Jul 2014 10:21:54 +0000 (12:21 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 8 Jul 2014 10:21:54 +0000 (12:21 +0200)
src/client/map.c

index 2a1d66f300a90d02eb09a0d9752b16dbbadfff38..af2f57c9621d4eb20fd8721c40d4425ac5662a95 100644 (file)
@@ -43,7 +43,7 @@ extern void map_center()
 {
     struct Win * win_map = get_win_by_id('m');
     win_map->center.y = world.player_pos.y;
-    win_map->center.x = world.player_pos.x * 2;
+    win_map->center.x = world.player_pos.x * 2 + (world.player_pos.y % 2);
 }