Merge pull request #832 from duncanspumpkin/fix_hack

Fix Footpath Scenery Clear
This commit is contained in:
Ted John 2015-02-19 18:49:16 +00:00
commit 7e2969abaf
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ static money32 footpath_element_insert(int type, int x, int y, int z, int slope,
RCT2_GLOBAL(0x00F3EF86, uint16) = y;
// Ugh, hack until 0x006A6733 is written
RCT2_GLOBAL(0x00F3EF7C, uint32) = (uint32)(&flags - 8);
// 0x006A6733 expects the flags to be at (*0xF3EF7C) + 8
RCT2_GLOBAL(0x00F3EF7C, uint32) = (uint32)(&flags - 2);
if (!map_can_construct_with_clear_at(x, y, z, zHigh, (void*)0x006A6733, bl))
return MONEY32_UNDEFINED;