From 2e0c0e9d89fb17724bf0c8c20cdba5c96763b295 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 18 Mar 2012 17:17:05 +0200 Subject: [PATCH] Fix old world search path for non-run-in-place build --- src/subgame.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- 2.30.2