From 306e345adab33a67e3fc12aad2f7ae7c6c86302c Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Mon, 26 Jan 2009 19:48:33 -0700 Subject: Slight bit of code cleanup, as well as minor fixes to logic. For some reason, the windows will gladly shrink when resizeable, but not grow. This will need to get resolved some time later. Signed-off-by: Ira Rice --- src/game.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 76cf792e..5b37d409 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -234,12 +234,8 @@ void createGuiWindows(Network *network) itemShortcutWindow->getWindowName() + "Visible", true)); 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); + minimap->setVisible((bool) config.getValue( + minimap->getWindowName() + "Visible", true)); } /** -- cgit v1.2.3-60-g2f50