From: Perttu Ahola Date: Sun, 18 Mar 2012 15:17:05 +0000 (+0200) Subject: Fix old world search path for non-run-in-place build X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=2e0c0e9d89fb17724bf0c8c20cdba5c96763b295;p=zefram%2Fminetest%2Fminetest_engine.git Fix old world search path for non-run-in-place build --- diff --git a/src/subgame.cpp b/src/subgame.cpp index 58881ecb..d3453019 100644 --- a/src/subgame.cpp +++ b/src/subgame.cpp @@ -130,8 +130,12 @@ std::vector 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";