mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
* Closes #13624: Refactor ViewportInteractionItem to use strong enum
This commit is contained in:
@@ -129,7 +129,7 @@ namespace OpenRCT2::Scripting
|
||||
obj.Set("screenCoords", ToDuk(ctx, screenCoords));
|
||||
obj.Set("mapCoords", ToDuk(ctx, info.Loc));
|
||||
|
||||
if (info.SpriteType == VIEWPORT_INTERACTION_ITEM_SPRITE && info.Entity != nullptr)
|
||||
if (info.SpriteType == ViewportInteractionItem::Entity && info.Entity != nullptr)
|
||||
{
|
||||
obj.Set("entityId", info.Entity->sprite_index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user