projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5db58
)
Fix old world search path for non-run-in-place build
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 18 Mar 2012 15:17:05 +0000
(17:17 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 18 Mar 2012 15:17:05 +0000
(17:17 +0200)
src/subgame.cpp
patch
|
blob
|
history
diff --git
a/src/subgame.cpp
b/src/subgame.cpp
index 58881ecb8f982920befaf14e2bb45bb6058c5d76..d34530193fd8b7591f197bac37dc3a5d2a8fae1c 100644
(file)
--- 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";