mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #1243.
For a lengthy reason as to how this worked before see #1243. New version skips bad map_elements (and the next one).
This commit is contained in:
parent
00d8b2c463
commit
169628ddb0
|
@ -1185,6 +1185,11 @@ void sub_68B35F(int ax, int cx)
|
|||
RCT2_CALLPROC_X(0x6B9CC4, 0, 0, direction, dx, (int)map_element, 0, 0);
|
||||
break;
|
||||
default:
|
||||
// This is a little hack for taking care of undefined map_elements
|
||||
// 8cars MOM used a dirty version of this to skip drawing certain elements
|
||||
if (map_element_is_last_for_tile(map_element))
|
||||
return;
|
||||
map_element++;
|
||||
break;
|
||||
}
|
||||
RCT2_GLOBAL(0x9DE574, uint32_t) = dword_9DE574;
|
||||
|
|
Loading…
Reference in New Issue