mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 18:25:16 +01:00
Fix #12505: Stores can only have the first product advertised
This commit is contained in:
committed by
GitHub
parent
63f683853e
commit
469f894701
@@ -54,6 +54,7 @@
|
||||
- Fix: [#12297] OpenGL renderer causing artifacts.
|
||||
- Fix: [#12312] Softlock when loading save file via command line fails.
|
||||
- Fix: [#12486] `set-rct2` has a broken g1.dat check.
|
||||
- Fix: [#12505] Stores selling multiple items can only have the first product advertised.
|
||||
- Fix: 'j' character has broken kerning (original bug).
|
||||
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
|
||||
- Improved: [#6530] Allow water and land height changes on park borders.
|
||||
|
||||
@@ -172,10 +172,12 @@ static void window_new_campaign_get_shop_items()
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
if (rideEntry != nullptr)
|
||||
{
|
||||
auto itemType = rideEntry->shop_item[0];
|
||||
if (itemType != SHOP_ITEM_NONE && ShopItems[itemType].IsFoodOrDrink())
|
||||
for (const auto itemType : rideEntry->shop_item)
|
||||
{
|
||||
items |= 1ULL << itemType;
|
||||
if (itemType != SHOP_ITEM_NONE && ShopItems[itemType].IsFoodOrDrink())
|
||||
{
|
||||
items |= 1ULL << itemType;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user