Remove debug
This commit is contained in:
@@ -356,9 +356,6 @@ namespace OpenRa
|
|||||||
var d = left ? +1 : Player.PlayerColors.Count() - 1;
|
var d = left ? +1 : Player.PlayerColors.Count() - 1;
|
||||||
|
|
||||||
var newIndex = ((int)Game.world.LocalPlayer.PaletteIndex + d) % Player.PlayerColors.Count();
|
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)
|
while (!PaletteAvailable(newIndex) && newIndex != (int)Game.world.LocalPlayer.PaletteIndex)
|
||||||
newIndex = (newIndex + d) % Player.PlayerColors.Count();
|
newIndex = (newIndex + d) % Player.PlayerColors.Count();
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ namespace OpenRa
|
|||||||
|
|
||||||
public static void RegisterPlayerColor(string palette, string name, Color c)
|
public static void RegisterPlayerColor(string palette, string name, Color c)
|
||||||
{
|
{
|
||||||
Log.Write("Adding player color {0}",name);
|
|
||||||
PlayerColors.Add(new Tuple<string, string, Color>(palette, name, c));
|
PlayerColors.Add(new Tuple<string, string, Color>(palette, name, c));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user