Fix #5433: Strange Umbrella Pricing Bug

Secondary shop item pricing was being overwritten by on-ride photo price when placing shop. (#5436)
This commit is contained in:
Richard Jenkins 2017-05-05 18:08:02 +01:00 committed by Ted John
parent 6e7ce919f7
commit 14ec639b47
1 changed files with 2 additions and 2 deletions

View File

@ -6105,8 +6105,8 @@ foundRideEntry:
}
}
// Set the on-ride photo price. (Whether the ride has one or not.)
if (shop_item_has_common_price(SHOP_ITEM_PHOTO)) {
// Set the on-ride photo price, whether the ride has one or not (except shops).
if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP) && shop_item_has_common_price(SHOP_ITEM_PHOTO)) {
money32 price = shop_item_get_common_price(ride, SHOP_ITEM_PHOTO);
if (price != MONEY32_UNDEFINED) {
ride->price_secondary = (money16)price;