diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:47:20 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:47:20 +0000 |
commit | 3a431603a284010cb009748788d92f638f69d729 (patch) | |
tree | 9aadedf03cdb46e1da2e4b044a3428f95b9a0f31 | |
parent | ae53186552918738595379722cbb386d7c0438c6 (diff) | |
download | mana-client-3a431603a284010cb009748788d92f638f69d729.tar.gz mana-client-3a431603a284010cb009748788d92f638f69d729.tar.bz2 mana-client-3a431603a284010cb009748788d92f638f69d729.tar.xz mana-client-3a431603a284010cb009748788d92f638f69d729.zip |
logger...
-rw-r--r-- | src/engine.cpp | 10 | ||||
-rw-r--r-- | src/graphics.cpp | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 7785313f..b03dbf38 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -203,11 +203,11 @@ Engine::Engine() Image *itembitmap = resman->getImage( "core/graphics/sprites/items.png", IMG_ALPHA); - if (!npcbmp) error("Unable to load npcs.png"); - if (!emotionbmp) error("Unable to load emotions.png"); - if (!monsterbitmap) error("Unable to load monsters.png"); - if (!weaponbitmap) error("Unable to load weapons.png"); - if (!itembitmap) 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 (!monsterbitmap) logger.error("Unable to load monsters.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); diff --git a/src/graphics.cpp b/src/graphics.cpp index cd46482b..ecea7bbd 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -24,6 +24,7 @@ #include "graphics.h" #include "log.h" #include "resources/resourcemanager.h" +#include "main.h" SDL_Surface *screen; @@ -44,7 +45,7 @@ Graphics::Graphics(): ResourceManager *resman = ResourceManager::getInstance(); mouseCursor = resman->getImage("core/graphics/gui/mouse.png", IMG_ALPHA); if (!mouseCursor) { - error("Unable to load mouse cursor."); + logger.error("Unable to load mouse cursor."); } // Initialize for drawing |