summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:50:15 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:50:15 +0000
commit2820f4d4329f29fc75c85d6b2195fd42b97fd457 (patch)
tree2e48985cf1fddad7b37afcc3eefaeb75ed1d1ee3 /src/game.cpp
parente961be5bfd29ad3f44f948828981cb3ab07f25a7 (diff)
downloadmana-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.gz
mana-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.bz2
mana-2820f4d4329f29fc75c85d6b2195fd42b97fd457.tar.xz
mana-2820f4d4329f29fc75c85d6b2195fd42b97fd457.zip
Added an option to show log messages in the chat console.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2794b2e6..9a669661 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -212,6 +212,11 @@ void createGuiWindows(Network *network)
miniStatusWindow->setVisible(true);
menuWindow->setVisible(true);
itemShortcutWindow->setVisible(true);
+
+ if (config.getValue("logToChat", 0))
+ {
+ logger->setChatWindow(chatWindow);
+ }
}
/**