Skip map if invalid (like Royal GM)

This commit is contained in:
Beu 2021-09-06 18:57:17 +02:00
parent a7dfc0d8f8
commit b02d4f1cd8

View File

@ -186,6 +186,11 @@ foreach (Start in SortedStarts) {
if (Map_Starts.count > 0) {
Map::SetDefaultStart(Map_Starts[0]);
} else {
StateMgr::ForcePlayersStates([StateMgr::C_State_Waiting]);
UIManager.UIAll.QueueMessage(3000, 1, CUIConfig::EMessageDisplay::Big, _("This map is not valid"));
MB_Sleep(3000);
MB_StopMap();
}
// We use `>= 0` and not `> 0` here because the waiting screen