From 1f56d71f190c67325bdc413dfbc6c8e4b8284d98 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 19 Mar 2012 20:44:07 +0200 Subject: Rework directory structure --- src/main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d08f88417..35595e5aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1033,8 +1033,13 @@ int main(int argc, char *argv[]) // No specific world was commanded // Check if the world is found from the default directory, and if // not, see if the legacy world directory exists. - world_path = porting::path_user + DIR_DELIM + "server" + DIR_DELIM + "worlds" + DIR_DELIM + "world"; - std::string legacy_world_path = porting::path_user+DIR_DELIM+".."+DIR_DELIM+"world"; + world_path = porting::path_user + DIR_DELIM + "worlds" + DIR_DELIM + "world"; +#ifdef RUN_IN_PLACE + std::string legacy_world_path = porting::path_user + DIR_DELIM + + ".." + DIR_DELIM + "world"; +#else + std::string legacy_world_path = porting::path_user + DIR_DELIM + "world"; +#endif if(!fs::PathExists(world_path) && fs::PathExists(legacy_world_path)){ errorstream<<"Warning: Using legacy world directory \"" <