diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-19 18:34:59 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:25 +0200 |
| commit | 11d468baf7a5920eef326c566e4091a4ddfbe937 (patch) | |
| tree | 75a8de90d1a0fbe5b0bd13a452ce0ea4a213647d /go/ui | |
| parent | d71fdd86d40d34b5c60baf6e998a9fbf93cf4350 (diff) | |
| download | muhqs-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.go | 3 |
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 { |
