Fix old world search path for non-run-in-place build
authorPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 15:17:05 +0000 (17:17 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 15:17:05 +0000 (17:17 +0200)
src/subgame.cpp

index 58881ecb8f982920befaf14e2bb45bb6058c5d76..d34530193fd8b7591f197bac37dc3a5d2a8fae1c 100644 (file)
@@ -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";