mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Rework and refactor PathBitEntry (#14809)
This commit is contained in:
@@ -465,16 +465,17 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor
|
||||
return info;
|
||||
|
||||
case ViewportInteractionItem::FootpathItem:
|
||||
sceneryEntry = tileElement->AsPath()->GetAdditionEntry();
|
||||
{
|
||||
auto* pathAddEntry = tileElement->AsPath()->GetAdditionEntry();
|
||||
ft.Add<rct_string_id>(STR_MAP_TOOLTIP_STRINGID_CLICK_TO_REMOVE);
|
||||
if (tileElement->AsPath()->IsBroken())
|
||||
{
|
||||
ft.Add<rct_string_id>(STR_BROKEN);
|
||||
}
|
||||
ft.Add<rct_string_id>(sceneryEntry->name);
|
||||
ft.Add<rct_string_id>(pathAddEntry->name);
|
||||
SetMapTooltip(ft);
|
||||
return info;
|
||||
|
||||
}
|
||||
case ViewportInteractionItem::ParkEntrance:
|
||||
if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !gCheatsSandboxMode)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user