home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client: Fix horizontal wobbliness of auto-centering on player.
[plomrogue]
/
src
/
client
/
map.c
diff --git
a/src/client/map.c
b/src/client/map.c
index 7c2dcc384590df51b3dcfa46c9bcb577a6755e27..af2f57c9621d4eb20fd8721c40d4425ac5662a95 100644
(file)
--- a/
src/client/map.c
+++ b/
src/client/map.c
@@
-43,5
+43,12
@@
extern void map_center()
{
struct Win * win_map = get_win_by_id('m');
win_map->center.y = world.player_pos.y;
{
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);
+}
+
+
+
+extern void toggle_autofocus()
+{
+ world.focus_each_turn = world.focus_each_turn ? 0 : 1;
}
}