1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Close #13624: Refactor ViewportInteractionItem to use strong enum (#13657)

* Closes #13624: Refactor ViewportInteractionItem to use strong enum
This commit is contained in:
Dennis Devriendt
2020-12-29 19:09:15 +01:00
committed by GitHub
parent ce2319fca4
commit 3073cca6aa
45 changed files with 238 additions and 230 deletions

View File

@@ -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);
}