diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
commit | b8dbdb628ba7a07a785e494d0ed76ebfe9e06615 (patch) | |
tree | 173d22e656ac771e473cdb7c1d035963d39c27e1 /src/map.cpp | |
parent | b05628214d64e579504c87da72e79c024245a631 (diff) | |
download | mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.gz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.bz2 mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.xz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.zip |
Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp index 17e9fd02..81540e98 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -112,7 +112,7 @@ Map::~Map() Map *Map::load(const std::string &mapFile) { - logger.log("Map::load(%s)", mapFile.c_str()); + logger->log("Map::load(%s)", mapFile.c_str()); if (mapFile.find(".tmx", 0) != std::string::npos) { @@ -123,7 +123,7 @@ Map *Map::load(const std::string &mapFile) FILE *file = fopen(mapFile.c_str(), "r"); if (!file) { - logger.log("Warning: %s", mapFile.c_str()); + logger->log("Warning: %s", mapFile.c_str()); return NULL; } @@ -136,7 +136,7 @@ Map *Map::load(const std::string &mapFile) // Load the default tileset ResourceManager *resman = ResourceManager::getInstance(); Image *tilesetbmp = resman->getImage("graphics/tiles/desert.png"); - if (!tilesetbmp) logger.error("Unable to load desert.png"); + if (!tilesetbmp) logger->error("Unable to load desert.png"); Spriteset *tileset = new Spriteset(tilesetbmp, 32, 32); // Transfer tile data |