Fix player palette double-add bug
This commit is contained in:
@@ -356,6 +356,10 @@ namespace OpenRa
|
||||
var d = left ? +1 : Player.PlayerColors.Count() - 1;
|
||||
|
||||
var newIndex = ((int)Game.world.LocalPlayer.PaletteIndex + d) % Player.PlayerColors.Count();
|
||||
|
||||
Game.IssueOrder(
|
||||
Order.Chat("color count " + Player.PlayerColors.Count()));
|
||||
|
||||
while (!PaletteAvailable(newIndex) && newIndex != (int)Game.world.LocalPlayer.PaletteIndex)
|
||||
newIndex = (newIndex + d) % Player.PlayerColors.Count();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user