Hook up the spawn selector.

This commit is contained in:
Paul Chote
2011-06-19 14:17:31 +12:00
parent c80fbaacd5
commit e00bfd487d
4 changed files with 35 additions and 5 deletions

View File

@@ -94,7 +94,11 @@ namespace OpenRA.Mods.RA.Server
return true;
// Spectators don't need a spawnpoint
if (client.Slot == null)
if (targetClient.Slot == null)
return true;
// Map has disabled spawn changes
if (server.lobbyInfo.Slots[targetClient.Slot].LockSpawn)
return true;
int spawnPoint;