summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-03-24 20:43:06 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-03-24 20:43:06 +0000
commitae53186552918738595379722cbb386d7c0438c6 (patch)
tree222ed220f4fe0f60fe9765affa95aea3dbe2cd0c /src/game.cpp
parent004704f83ac63531e1f43e676925d4f26bc50756 (diff)
downloadmana-client-ae53186552918738595379722cbb386d7c0438c6.tar.gz
mana-client-ae53186552918738595379722cbb386d7c0438c6.tar.bz2
mana-client-ae53186552918738595379722cbb386d7c0438c6.tar.xz
mana-client-ae53186552918738595379722cbb386d7c0438c6.zip
logger final step going on...
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
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;
}