From 8446b826926ebbdb584cdfcd3dc5e4eb5bd142f1 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 18 Jan 2009 13:06:34 -0700 Subject: Fixed the minimap so that it properly remembers if it was open on closing, rather than opening every time the client loads. Signed-off-by: Ira Rice --- src/game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index a9e59586..7791d641 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -19,8 +19,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "game.h" - #include #include #include @@ -34,6 +32,7 @@ #include "emoteshortcut.h" #include "engine.h" #include "flooritemmanager.h" +#include "game.h" #include "graphics.h" #include "itemshortcut.h" #include "joystick.h" @@ -230,10 +229,11 @@ void createGuiWindows(Network *network) emoteShortcutWindow->setVisible((bool) config.getValue( emoteShortcutWindow->getWindowName() + "Visible", true)); + if (!(bool) config.getValue("MinimapVisible", true)) + minimap->toggle(); + if (config.getValue("logToChat", 0)) - { logger->setChatWindow(chatWindow); - } } /** -- cgit v1.2.3-70-g09d2