1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix assertion error in calculation

This commit is contained in:
Marijn van der Werf
2016-04-21 09:34:21 +02:00
parent eb5400ef2e
commit 6231b8672d

View File

@@ -1777,7 +1777,8 @@ uint32 viewport_surface_paint_setup_get_ebx(rct_map_element *mapElement, int cl)
uint16 di = (bl & 0x0F) << cl;
uint32 ebx = bl & 0x10;
return ebx | (di | di >> 4);
di = ((di >> 4) | di) & 0x0F;
return ebx | di;
}
/**