summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 11a0cd81..6200bd0c 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -145,7 +145,8 @@ Engine::Engine()
guiTop->add(debugInfo);
// Create dialogs
- chatWindow = new ChatWindow("chatlog.txt", 20);
+ chatWindow = new ChatWindow(
+ std::string(homeDir) + std::string("chatlog.txt"));
statusWindow = new StatusWindow();
buyDialog = new BuyDialog();
sellDialog = new SellDialog();
@@ -216,10 +217,10 @@ Engine::Engine()
Image *itembitmap = resman->getImage(
"graphics/sprites/items.png", IMG_ALPHA);
- if (!npcbmp) logger.error("Unable to load npcs.png");
- if (!emotionbmp) logger.error("Unable to load emotions.png");
- if (!weaponbitmap) logger.error("Unable to load weapons.png");
- if (!itembitmap) logger.error("Unable to load items.png");
+ if (!npcbmp) logger->error("Unable to load npcs.png");
+ if (!emotionbmp) logger->error("Unable to load emotions.png");
+ if (!weaponbitmap) logger->error("Unable to load weapons.png");
+ if (!itembitmap) logger->error("Unable to load items.png");
npcset = new Spriteset(npcbmp, 50, 80);
emotionset = new Spriteset(emotionbmp, 19, 19);