From 28d6fed30bc0501d5452c7fbdf41125ea8bef318 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 3 Aug 2014 05:59:15 +0200 Subject: [PATCH] Client: Scrolling toggles player auto-focus off. --- src/client/map.c | 1 + src/client/map.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/map.c b/src/client/map.c index af2f57c..7b4693c 100644 --- a/src/client/map.c +++ b/src/client/map.c @@ -9,6 +9,7 @@ extern void map_scroll(char d) { + world.focus_each_turn = 0; struct Win * win = get_win_by_id('m'); uint16_t offset; if (('8' == d || '2' == d) && world.map.length > win->frame_size.y) diff --git a/src/client/map.h b/src/client/map.h index f8c6c9f..75978c6 100644 --- a/src/client/map.h +++ b/src/client/map.h @@ -8,7 +8,9 @@ -/* Try changing map window's focus into direction "d" (north = "N" etc.). */ +/* Try changing map window's focus into direction "d" (north = "N" etc.). Unset + * world.focus_each_turn. + */ extern void map_scroll(char d); /* Center map window on player (even if it is non-visible). */ -- 2.30.2