From 11d468baf7a5920eef326c566e4091a4ddfbe937 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 19 Jul 2025 18:34:59 -0400 Subject: remove player color from game code --- go/ui/mapView.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'go/ui/mapView.go') diff --git a/go/ui/mapView.go b/go/ui/mapView.go index 2016a60f..25ebd5aa 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -309,7 +309,8 @@ func (vw *MapView) drawPermanentsLayer(screen *ebiten.Image) { op := &ebiten.DrawImageOptions{} op.GeoM.Scale(vw.scale, vw.scale) op.GeoM.Translate(float64(x_px), float64(y_px)) - op.ColorScale.ScaleWithColor(p.Controller().Color) + col := PlayerColors[p.Controller().Id-1] + op.ColorScale.ScaleWithColor(col) if colors, found := vw.permanentsHighlights[p]; found { for _, color := range colors { -- cgit v1.2.3