Add check for ghost entrance removal.

Fixes #1601
This commit is contained in:
Duncan Frost 2015-07-13 21:18:55 +01:00
parent 8504486b28
commit 23bb22c3af
1 changed files with 3 additions and 0 deletions

View File

@ -6149,6 +6149,9 @@ money32 remove_ride_entrance_or_exit(sint16 x, sint16 y, uint8 rideIndex, uint8
if (mapElement->base_height != ride->station_heights[station_num])
continue;
if (flags & (1 << 5) && !(mapElement->flags & MAP_ELEMENT_FLAG_GHOST))
continue;
found = 1;
break;
} while (!map_element_is_last_for_tile(mapElement++));