Skip to content
Permalink
Browse files

Provide more info if a subgame is not valid/found

  • Loading branch information
Zeno- committed Dec 13, 2014
1 parent ce4ed65 commit 784a452ed52ca3a8b46997c7f787b04a3a07b7d5
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main.cpp
@@ -1395,6 +1395,12 @@ static bool determine_subgame(GameParams *game_params)
} else { // Otherwise we will be using "minetest"
gamespec = findSubgame(g_settings->get("default_game"));
infostream << "Using default gameid [" << gamespec.id << "]" << std::endl;
if (!gamespec.isValid()) {
errorstream << "Subgame specified in default_game ["
<< g_settings->get("default_game")
<< "] is invalid." << std::endl;
return false;
}
}
} else { // World exists
std::string world_gameid = getWorldGameId(game_params->world_path, false);

0 comments on commit 784a452

Please sign in to comment.
You can’t perform that action at this time.