diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 20:25:15 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:33 +0200 |
| commit | 84d69cf805e1b998768a5a340f0388cf68307ff2 (patch) | |
| tree | c6578326dafade6fd00ccdee525af288f140fe8f /go/ui/mapView.go | |
| parent | 81e9ab9db504e09e24523482b169726a25d9a3b1 (diff) | |
| download | muhqs-game-84d69cf805e1b998768a5a340f0388cf68307ff2.tar.gz muhqs-game-84d69cf805e1b998768a5a340f0388cf68307ff2.zip | |
use any instead of interface{}
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 f716278c..d73f3573 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -386,7 +386,7 @@ func isSymbolTransparentAt(p game.Permanent, relativeX, relativeY int) bool { return alpha == 0 } -func (vw *MapView) FindObjectAt(screenX, screenY int) interface{} { +func (vw *MapView) FindObjectAt(screenX, screenY int) any { scaled_tile_wdth := int(float64(TILE_WIDTH) * vw.scale) scaled_tile_hght := int(float64(TILE_HEIGHT) * vw.scale) x := screenX / scaled_tile_wdth |
