1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00

Create Vehicle::IsCableLift()

This commit is contained in:
frutiemax
2022-12-22 06:26:35 -05:00
committed by GitHub
parent a862fbd07f
commit 29d40d0cba
4 changed files with 10 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ InteractionInfo ViewportInteractionGetItemLeft(const ScreenCoordsXY& screenCoord
case EntityType::Vehicle:
{
auto vehicle = sprite->As<Vehicle>();
if (vehicle != nullptr && vehicle->ride_subtype != OBJECT_ENTRY_INDEX_NULL)
if (vehicle != nullptr && !vehicle->IsCableLift())
vehicle->SetMapToolbar();
else
info.SpriteType = ViewportInteractionItem::None;