summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-25 19:53:42 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-25 19:53:42 +0000
commit56c77400a6822e5a84aa4bb1c3842b35ef14e9ea (patch)
tree2020627882af324febfea482edadf3b0a4e9786d /src
parent11ecc77e143ecff4f1f2120f6d8cdbadcf311710 (diff)
downloadmana-56c77400a6822e5a84aa4bb1c3842b35ef14e9ea.tar.gz
mana-56c77400a6822e5a84aa4bb1c3842b35ef14e9ea.tar.bz2
mana-56c77400a6822e5a84aa4bb1c3842b35ef14e9ea.tar.xz
mana-56c77400a6822e5a84aa4bb1c3842b35ef14e9ea.zip
Put map in new place and unified loading location.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
-rw-r--r--src/gui/char_select.cpp2
-rw-r--r--src/resources/mapreader.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3842ec45..041274d2 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -810,7 +810,7 @@ void do_parse() {
// Warp
case 0x0091:
memset(map_path, '\0', 480);
- strcat(map_path, "./core/maps/");
+ strcat(map_path, "data/maps/");
strncat(map_path, RFIFOP(2), 497 - strlen(map_path));
logger.log("Warping to %s (%d, %d)\n",
map_path, RFIFOW(18), RFIFOW(20));
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index 97c35a57..4b8a9099 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -223,7 +223,7 @@ void CharSelectDialog::serverCharSelect()
}
char_ID = RFIFOL(2);
memset(map_path, '\0', 480);
- strcat(map_path, "./data/map/");
+ strcat(map_path, "data/maps/");
strncat(map_path, RFIFOP(6), 479 - strlen(map_path));
map_address = RFIFOL(22);
map_port = RFIFOW(26);
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 38e15945..31048207 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -58,7 +58,7 @@ Map *MapReader::readMap(const std::string &filename)
{
logger.log("Attempting to parse XML map data");
- std::string name = std::string("data/") + filename;
+ std::string name = /*std::string("data/") +*/ filename;
xmlDocPtr doc = xmlParseFile(name.c_str());
if (doc) {