Fix #5003: Able to remove entrance/exit of unedittable rides

This commit is contained in:
Ted John 2017-01-26 23:24:45 +00:00
parent 8d1fbcf188
commit 53c788d9d9
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
- Fix: [#4951] Scenarios are not recorded as completed from a saved game.
- Fix: [#4968] Completing a scenario does not save the name that is entered.
- Fix: [#4996] Objects unloaded after loading landscape.
- Fox: [#5003] Able to remove entrance/exit of unedittable rides (such as in Volcania).
- Fix: [#5114] Some entertainer costumes never select-able.
0.0.5 (2016-12-27)

View File

@ -8371,6 +8371,11 @@ static money32 remove_ride_entrance_or_exit(sint16 x, sint16 y, uint8 rideIndex,
return MONEY32_UNDEFINED;
}
if (ride->lifecycle_flags & RIDE_LIFECYCLE_INDESTRUCTIBLE_TRACK) {
gGameCommandErrorText = STR_NOT_ALLOWED_TO_MODIFY_STATION;
return MONEY32_UNDEFINED;
}
if (flags & GAME_COMMAND_FLAG_APPLY){
ride_clear_for_construction(rideIndex);
ride_remove_peeps(rideIndex);