home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8848ee6
)
Client: Fix horizontal wobbliness of auto-centering on player.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 8 Jul 2014 10:21:54 +0000
(12:21 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 8 Jul 2014 10:21:54 +0000
(12:21 +0200)
src/client/map.c
patch
|
blob
|
history
diff --git
a/src/client/map.c
b/src/client/map.c
index 2a1d66f300a90d02eb09a0d9752b16dbbadfff38..af2f57c9621d4eb20fd8721c40d4425ac5662a95 100644
(file)
--- 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)
;
}