diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-20 12:00:32 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:17:17 +0100 |
| commit | 5c8dd17404820e631fa3d5a82a67f07d067695bd (patch) | |
| tree | 5ce54fc2a15fd005b55f92e3dbee600a5c6237fa /go/ui/mapView.go | |
| parent | a72f4331a052c3e01ee27fc2cb96c9c12fed1651 (diff) | |
| download | muhqs-game-5c8dd17404820e631fa3d5a82a67f07d067695bd.tar.gz muhqs-game-5c8dd17404820e631fa3d5a82a67f07d067695bd.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) |
