From: Christian Heller Date: Sun, 3 Aug 2014 03:59:15 +0000 (+0200) Subject: Client: Scrolling toggles player auto-focus off. X-Git-Tag: tce~671 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/do_tasks?a=commitdiff_plain;h=28d6fed30bc0501d5452c7fbdf41125ea8bef318;p=plomrogue Client: Scrolling toggles player auto-focus off. --- 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). */