convert Map.SpawnPoints to int2[]; tidy
This commit is contained in:
@@ -381,7 +381,7 @@ namespace OpenRA.Mods.RA.Server
|
||||
return true;
|
||||
|
||||
int spawnPoint;
|
||||
if (!int.TryParse(parts[1], out spawnPoint) || spawnPoint < 0 || spawnPoint > server.Map.SpawnPoints.Count())
|
||||
if (!int.TryParse(parts[1], out spawnPoint) || spawnPoint < 0 || spawnPoint > server.Map.GetSpawnPoints().Length)
|
||||
{
|
||||
Log.Write("server", "Invalid spawn point: {0}", parts[1]);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user