mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-15 12:02:34 +01:00
Check if we're in shop tab before drawing track design info
This commit is contained in:
@@ -949,11 +949,14 @@ namespace OpenRCT2::Ui::Windows
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto count = GetNumTrackDesigns(item);
|
if (_currentTab != SHOP_TAB)
|
||||||
auto designCountStringId = GetDesignsAvailableStringId(count);
|
{
|
||||||
ft = Formatter();
|
auto count = GetNumTrackDesigns(item);
|
||||||
ft.Add<int32_t>(count);
|
auto designCountStringId = GetDesignsAvailableStringId(count);
|
||||||
DrawTextBasic(rt, screenPos + ScreenCoordsXY{ 0, 51 }, designCountStringId, ft);
|
ft = Formatter();
|
||||||
|
ft.Add<int32_t>(count);
|
||||||
|
DrawTextBasic(rt, screenPos + ScreenCoordsXY{ 0, 51 }, designCountStringId, ft);
|
||||||
|
}
|
||||||
|
|
||||||
// Price
|
// Price
|
||||||
if (!(getGameState().park.flags & PARK_FLAGS_NO_MONEY))
|
if (!(getGameState().park.flags & PARK_FLAGS_NO_MONEY))
|
||||||
|
|||||||
Reference in New Issue
Block a user