From 591527d8787b6dfaafd2113bc001fe892b3eb0fb Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 13 Mar 2012 00:06:37 +0200 Subject: World creation button and dialog and functionality --- src/main.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 41cf583f5..2f9c69fe1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1298,7 +1298,7 @@ int main(int argc, char *argv[]) std::string gameid = getWorldGameId(commanded_world, true); if(gameid == "") gameid = g_settings->get("default_game"); - WorldSpec spec(commanded_world, "[commanded world]", gameid); + WorldSpec spec(commanded_world, "--world", gameid); worldspecs.push_back(spec); menudata.worlds.push_back(narrow_to_wide(spec.name) +L" ["+narrow_to_wide(spec.gameid)+L"]"); @@ -1363,7 +1363,7 @@ int main(int argc, char *argv[]) <<" ["<set("selected_world_path", path); + continue; + } + playername = wide_to_narrow(menudata.name); password = translatePassword(playername, menudata.password); //infostream<<"Main: password hash: '"<