From 84d69cf805e1b998768a5a340f0388cf68307ff2 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 30 Jul 2025 20:25:15 +0200 Subject: use any instead of interface{} --- go/ui/mapView.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/ui/mapView.go') 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 -- cgit v1.2.3