From: Christian Heller Date: Wed, 22 Jan 2014 14:31:54 +0000 (+0100) Subject: Client: reload_interface_conf() calls map_center() to re-focus map on player. X-Git-Tag: tce~875 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/te"st.html?a=commitdiff_plain;h=1c20e240bb704cddfa80b60dfa20863218edc6d8;p=plomrogue Client: reload_interface_conf() calls map_center() to re-focus map on player. --- diff --git a/src/client/misc.c b/src/client/misc.c index 12f80bb..be6faeb 100644 --- a/src/client/misc.c +++ b/src/client/misc.c @@ -8,6 +8,7 @@ #include "keybindings.h" /* init_keybindings(), free_keybindings(), * save_keybindings() */ +#include "map_window.h" /* for map_center() */ #include "wincontrol.h" /* init_winconfs(), init_wins(), * sorted_wintoggle_and_activate() */ @@ -67,6 +68,7 @@ extern void reload_interface_conf() { unload_interface_conf(); load_interface_conf(); + map_center(); } diff --git a/src/client/misc.h b/src/client/misc.h index 7ca1137..bde51e6 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -14,6 +14,8 @@ /* Save / load (init) / unload (free/dissolve) / reload interface configuration * data, world.wmeta.pad (initialized before opening any windows to the height * of the terminal screen and a width of 1) and window chains. + * + * Note that reload_interface_conf() also calls map_center(). */ extern void save_interface_conf(); extern void load_interface_conf();