aboutsummaryrefslogtreecommitdiff
path: root/go/ui/mapView.go
diff options
context:
space:
mode:
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 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