From: Christian Heller Date: Tue, 8 Jul 2014 10:21:54 +0000 (+0200) Subject: Client: Fix horizontal wobbliness of auto-centering on player. X-Git-Tag: tce~727 X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/process?a=commitdiff_plain;h=f03b7048321546b45763441cd1f2b34813524bc7;p=plomrogue Client: Fix horizontal wobbliness of auto-centering on player. --- diff --git a/src/client/map.c b/src/client/map.c index 2a1d66f..af2f57c 100644 --- a/src/client/map.c +++ b/src/client/map.c @@ -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); }