aboutsummaryrefslogtreecommitdiff
path: root/go/ui/mapView.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-20 12:00:32 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:44 +0100
commit260e52050562281a90b970c44e8816afb5f4dbaf (patch)
treefa760f4a2b4db32dda5ad8d4d40574b27e302dbd /go/ui/mapView.go
parentcbed4f79f1f7f90f600ad9d1d711f82c6e09e8e5 (diff)
downloadmuhqs-game-260e52050562281a90b970c44e8816afb5f4dbaf.tar.gz
muhqs-game-260e52050562281a90b970c44e8816afb5f4dbaf.zip
intermediate commit
* Add static analysis and improve Makefile * Implement hints from static code analysis
Diffstat (limited to 'go/ui/mapView.go')
-rw-r--r--go/ui/mapView.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/mapView.go b/go/ui/mapView.go
index 43ea0f01..39c92ae4 100644
--- a/go/ui/mapView.go
+++ b/go/ui/mapView.go
@@ -98,7 +98,7 @@ func (vw *MapView) drawMapLayer(screen *ebiten.Image) {
x_px, y_px := 0.0, 0.0
for y := 0; y < len(vw.gameState.Map.Tiles); y++ {
for x := 0; x < len(vw.gameState.Map.Tiles[y]); x++ {
- pos := game.Position{x, y}
+ pos := game.Position{X: x, Y: y}
tile := vw.gameState.Map.TileAt(pos)
tileImg := assets.GetTile(tile.Raw)