Fix #701 - cannot select spawnpoints > 8.

This commit is contained in:
Paul Chote
2011-04-16 12:10:45 +12:00
parent e5506f2455
commit 4e89326134

View File

@@ -65,7 +65,7 @@ namespace OpenRA.Mods.RA.Server
s => s =>
{ {
int spawnPoint; int spawnPoint;
if (!int.TryParse(s, out spawnPoint) || spawnPoint < 0 || spawnPoint > 8) //TODO: SET properly! if (!int.TryParse(s, out spawnPoint) || spawnPoint < 0 || spawnPoint > server.Map.SpawnPoints.Count())
{ {
Log.Write("server", "Invalid spawn point: {0}", s); Log.Write("server", "Invalid spawn point: {0}", s);
return false; return false;