home · contact · privacy
Client: reload_interface_conf() calls map_center() to re-focus map on player.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jan 2014 14:31:54 +0000 (15:31 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jan 2014 14:31:54 +0000 (15:31 +0100)
src/client/misc.c
src/client/misc.h

index 12f80bbd3421f639ba8f51a358346c7781d1bba2..be6faeb9c7a0e5e5ddf2a4ce21e998d97bb53df9 100644 (file)
@@ -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();
 }
 
 
index 7ca1137b1c2f6b6a0d1c6117c2212161bc6a1b71..bde51e679afeea5beef4276d1c3e562f5f88ac7f 100644 (file)
@@ -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();