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: Add auto-center of map on player each new turn (can be toggled).
[plomrogue]
/
src
/
client
/
map.c
diff --git
a/src/client/map.c
b/src/client/map.c
index 7c2dcc384590df51b3dcfa46c9bcb577a6755e27..2a1d66f300a90d02eb09a0d9752b16dbbadfff38 100644
(file)
--- a/
src/client/map.c
+++ b/
src/client/map.c
@@
-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;
+}