aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-19 18:34:59 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:25 +0200
commit11d468baf7a5920eef326c566e4091a4ddfbe937 (patch)
tree75a8de90d1a0fbe5b0bd13a452ce0ea4a213647d /go/ui
parentd71fdd86d40d34b5c60baf6e998a9fbf93cf4350 (diff)
downloadmuhqs-game-11d468baf7a5920eef326c566e4091a4ddfbe937.tar.gz
muhqs-game-11d468baf7a5920eef326c566e4091a4ddfbe937.zip
remove player color from game code
Diffstat (limited to 'go/ui')
-rw-r--r--go/ui/mapView.go3
1 files changed, 2 insertions, 1 deletions
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 {