fixed silly bug in World.Queries in OwnedBy[].WithTrait<>

This commit is contained in:
Bob
2010-02-11 00:49:43 +13:00
parent 839d77410e
commit b8022022ed
2 changed files with 6 additions and 8 deletions

View File

@@ -344,9 +344,9 @@ namespace OpenRa
AddButton(r, _ => { });
}
bool PaletteAvailable(int index) { return Game.LobbyInfo.Clients.All(c => c.PaletteIndex != index); }
bool PaletteAvailable(int index) { return Game.LobbyInfo.Clients.All(c => c.PaletteIndex != index); }
bool SpawnPointAvailable(int index) { return (index == 0) || Game.LobbyInfo.Clients.All(c => c.SpawnPoint != index); }
void CyclePalette(bool left)
{
var d = left ? +1 : Player.PlayerColors.Count() - 1;