From ba779ac64c9eb3ef9d626d531c4acd5a758078b9 Mon Sep 17 00:00:00 2001 From: Stephan Spengler Date: Wed, 24 Jul 2024 16:42:02 +0200 Subject: [PATCH] Change ToolEventArgs.mapCoords from CoordsXYZ to CoordsXY Testing showed that the event returns CoordsXY instead of CoordsXYZ. The code can be traced back to InteractionInfo.Loc (Viewport.h), which is CoordsXY. --- distribution/openrct2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index 85ec3a3abf..012b6b1f69 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -4281,7 +4281,7 @@ declare global { interface ToolEventArgs { readonly isDown: boolean; readonly screenCoords: ScreenCoordsXY; - readonly mapCoords?: CoordsXYZ; + readonly mapCoords?: CoordsXY; readonly tileElementIndex?: number; readonly entityId?: number; }