readonly most of Player's state; setup for non-index player palettes (neutral)

This commit is contained in:
Chris Forbes
2010-03-17 22:49:55 +13:00
parent acf1a36e89
commit f9c70a2f65
2 changed files with 12 additions and 16 deletions

View File

@@ -173,7 +173,7 @@ namespace OpenRA.Traits
if ( weapon.RenderAsLaser )
{
// TODO: This is a hack; should probably use a particular palette index
Color bc = (weapon.UsePlayerColor) ? Player.PlayerColors[self.Owner.PaletteIndex].c : Color.Red;
Color bc = (weapon.UsePlayerColor) ? self.Owner.Color : Color.Red;
self.World.Add(new LaserZap(firePos, thisTarget.CenterLocation.ToInt2(), weapon.BeamRadius, bc));
}
if( weapon.RenderAsTesla )