diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:43:06 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:43:06 +0000 |
commit | ae53186552918738595379722cbb386d7c0438c6 (patch) | |
tree | 222ed220f4fe0f60fe9765affa95aea3dbe2cd0c | |
parent | 004704f83ac63531e1f43e676925d4f26bc50756 (diff) | |
download | mana-ae53186552918738595379722cbb386d7c0438c6.tar.gz mana-ae53186552918738595379722cbb386d7c0438c6.tar.bz2 mana-ae53186552918738595379722cbb386d7c0438c6.tar.xz mana-ae53186552918738595379722cbb386d7c0438c6.zip |
logger final step going on...
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2506406e..78299ebb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -135,7 +135,7 @@ void do_init() std::cout << map_path << std::endl; if (!tiledMap) { - error("Could not find map file"); + logger.error("Could not find map file"); } // Start playing background music @@ -807,7 +807,7 @@ void do_parse() { memset(map_path, '\0', 480); strcat(map_path, "./core/maps/"); strncat(map_path, RFIFOP(2), 497 - strlen(map_path)); - log("Warping to %s (%d, %d)\n", + logger.log("Warping to %s (%d, %d)\n", map_path, RFIFOW(18), RFIFOW(20)); if (tiledMap) delete tiledMap; @@ -838,7 +838,7 @@ void do_parse() { while (out_size > 0) flush(); } else { - error("Could not find map file"); + logger.error("Could not find map file"); } break; // Skill ... @@ -1366,7 +1366,7 @@ void do_parse() { break; // Manage non implemented packets default: - log("Unhandled packet: %x", id); + logger.log("Unhandled packet: %x", id); break; } |