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-Tag: 0.4.dev-20120318~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e0c0e9d89fb17724bf0c8c20cdba5c96763b295;p=oweals%2Fminetest.git Fix old world search path for non-run-in-place build --- 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 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";