aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-18 17:17:05 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-18 17:17:05 +0200
commit2e0c0e9d89fb17724bf0c8c20cdba5c96763b295 (patch)
treee4d6922ccf1489db0d310883a1bbee8452a072d4 /src
parentdb5db587bed4a0b9efd8b71c97e22f49c5ff45ab (diff)
downloadminetest-2e0c0e9d89fb17724bf0c8c20cdba5c96763b295.tar.gz
minetest-2e0c0e9d89fb17724bf0c8c20cdba5c96763b295.tar.bz2
minetest-2e0c0e9d89fb17724bf0c8c20cdba5c96763b295.zip
Fix old world search path for non-run-in-place build
Diffstat (limited to 'src')
-rw-r--r--src/subgame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subgame.cpp b/src/subgame.cpp
index 58881ecb8..d34530193 100644
--- a/src/subgame.cpp
+++ b/src/subgame.cpp
@@ -130,8 +130,12 @@ std::vector<WorldSpec> getAvailableWorlds()
}
// Check old world location
do{
+#ifdef RUN_IN_PLACE
std::string fullpath = porting::path_user + DIR_DELIM + ".."
+ DIR_DELIM + "world";
+#else
+ std::string fullpath = porting::path_user + DIR_DELIM + "world";
+#endif
if(!fs::PathExists(fullpath))
break;
std::string name = "Old World";