Merge pull request #1251 from duncanspumpkin/fix_invis

Correctly draw invisible entrances
This commit is contained in:
Ted John 2015-06-07 13:34:01 +01:00
commit ae15039171
1 changed files with 5 additions and 0 deletions

View File

@ -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;