Hook up the spawn selector.
This commit is contained in:
@@ -321,7 +321,8 @@ namespace OpenRA.Mods.RA.Server
|
||||
AllowBots = pr.AllowBots,
|
||||
LockRace = pr.LockRace,
|
||||
LockColor = pr.LockColor,
|
||||
LockTeam = false
|
||||
LockTeam = false,
|
||||
LockSpawn = false
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user