diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-20 12:00:32 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:44 +0100 |
| commit | 260e52050562281a90b970c44e8816afb5f4dbaf (patch) | |
| tree | fa760f4a2b4db32dda5ad8d4d40574b27e302dbd /go/ui/mapView.go | |
| parent | cbed4f79f1f7f90f600ad9d1d711f82c6e09e8e5 (diff) | |
| download | muhqs-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.go | 2 |
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) |
