1
0
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:
Michael Steenbeek
2020-07-29 00:08:16 +02:00
committed by GitHub
parent 63f683853e
commit 469f894701
2 changed files with 6 additions and 3 deletions

View File

@@ -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.

View File

@@ -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;
}
}
}
}