From 1c20e240bb704cddfa80b60dfa20863218edc6d8 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 22 Jan 2014 15:31:54 +0100
Subject: [PATCH] Client: reload_interface_conf() calls map_center() to
 re-focus map on player.

---
 src/client/misc.c | 2 ++
 src/client/misc.h | 2 ++
 2 files changed, 4 insertions(+)

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();
-- 
2.30.2