mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-13 02:52:35 +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);
|
||||
auto designCountStringId = GetDesignsAvailableStringId(count);
|
||||
ft = Formatter();
|
||||
ft.Add<int32_t>(count);
|
||||
DrawTextBasic(rt, screenPos + ScreenCoordsXY{ 0, 51 }, designCountStringId, ft);
|
||||
if (_currentTab != SHOP_TAB)
|
||||
{
|
||||
auto count = GetNumTrackDesigns(item);
|
||||
auto designCountStringId = GetDesignsAvailableStringId(count);
|
||||
ft = Formatter();
|
||||
ft.Add<int32_t>(count);
|
||||
DrawTextBasic(rt, screenPos + ScreenCoordsXY{ 0, 51 }, designCountStringId, ft);
|
||||
}
|
||||
|
||||
// Price
|
||||
if (!(getGameState().park.flags & PARK_FLAGS_NO_MONEY))
|
||||
|
||||
Reference in New Issue
Block a user