dedicated: handle non-existing map

This commit is contained in:
Igor Popov
2012-06-07 18:19:20 +04:00
committed by Chris Forbes
parent bf73cdbd01
commit 2798f0d841

View File

@@ -253,6 +253,11 @@ namespace OpenRA.Mods.RA.Server
server.SendChatTo( conn, "Only the host can change the map" );
return true;
}
if(!server.ModData.AvailableMaps.ContainsKey(s))
{
server.SendChatTo( conn, "Map not found");
return true;
}
server.lobbyInfo.GlobalSettings.Map = s;
var oldSlots = server.lobbyInfo.Slots.Keys.ToArray();
LoadMap(server);