Fix #4134: Can't enable park-wide photo price for log flume and river ra

Caused by not shifting the shop item flags (those above 32) to the correct mask bit.
This commit is contained in:
Ted John 2016-07-19 18:35:44 +01:00
parent f6c8993da6
commit 487fcc3c5b
2 changed files with 4 additions and 1 deletions

View File

@ -111,6 +111,7 @@
- Fix: [#3015] Walls in SC4/SV4 files are not imported correctly.
- Fix: [#3063] Search exe directory for SSL bundle as well as CWD.
- Fix: [#3120] Negative cash in finance window is not red.
- Fix: [#4134] Can't enable park-wide photo price for log flume and river rapids.
0.0.3.1-beta (2015-12-04)
------------------------------------------------------------------------

View File

@ -5641,7 +5641,9 @@ static void update_same_price_throughout_flags(uint32 shop_item)
game_do_command(0, 1, 0, (0x2 << 8), GAME_COMMAND_SET_PARK_OPEN, newFlags, shop_item);
newFlags = gSamePriceThroughoutParkB;
newFlags ^= (SHOP_ITEM_PHOTO2 - 32) | (SHOP_ITEM_PHOTO3 - 32) | (SHOP_ITEM_PHOTO4 - 32);
newFlags ^= (1 << (SHOP_ITEM_PHOTO2 - 32)) |
(1 << (SHOP_ITEM_PHOTO3 - 32)) |
(1 << (SHOP_ITEM_PHOTO4 - 32));
game_do_command(0, 1, 0, (0x3 << 8), GAME_COMMAND_SET_PARK_OPEN, newFlags, shop_item);
}
else {