Fallback to goal target if not specified in command line

This commit is contained in:
Benau 2018-07-19 09:24:13 +08:00
parent 285b4701d6
commit 00712c5c6d

View File

@ -1265,6 +1265,14 @@ int handleCmdLine()
NetworkConfig::get()->setServerMode(race_manager->getMinorMode(),
RaceManager::MAJOR_MODE_GRAND_PRIX);
}
else if (is_soccer)
{
Log::warn("main", "Set to goal target for soccer server");
LobbyProtocol::get<LobbyProtocol>()->getGameSetup()
->setSoccerGoalTarget(true);
NetworkConfig::get()->setServerMode(race_manager->getMinorMode(),
RaceManager::MAJOR_MODE_SINGLE);
}
else
{
NetworkConfig::get()->setServerMode(