summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e01e59a33..38a3b725b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1308,10 +1308,12 @@ int main(int argc, char *argv[])
// If a world was commanded, append and select it
if(commanded_world != ""){
std::string gameid = getWorldGameId(commanded_world, true);
- if(gameid == "")
+ std::string name = "[--world parameter]";
+ if(gameid == ""){
gameid = g_settings->get("default_game");
- WorldSpec spec(commanded_world, "[--world parameter]",
- gameid);
+ name += " [new]";
+ }
+ WorldSpec spec(commanded_world, name, gameid);
worldspecs.push_back(spec);
menudata.selected_world = worldspecs.size()-1;
}