mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 19:02:04 -05:00
fix #3691: Swamp goo animates faster compared to RCT2
This commit is contained in:
parent
ec04438b0d
commit
fe23222d75
1 changed files with 5 additions and 1 deletions
|
@ -188,7 +188,11 @@ void scenery_paint(uint8 direction, int height, rct_map_element* mapElement) {
|
|||
} else
|
||||
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG15) {
|
||||
// 6E02F6:
|
||||
int image_id = ((gCurrentTicks + (RCT2_GLOBAL(0x9DE568, sint16) / 4) + (RCT2_GLOBAL(0x9DE56C, sint16) / 4) / 4) & 0xF) + entry->image;
|
||||
int image_id = gCurrentTicks;
|
||||
image_id += RCT2_GLOBAL(0x009DE568, sint16) / 4;
|
||||
image_id += RCT2_GLOBAL(0x009DE56C, sint16) / 4;
|
||||
image_id = (image_id / 4) & 15;
|
||||
image_id += entry->image;
|
||||
if (dword_F64EB0 != 0) {
|
||||
image_id = (image_id & 0x7FFFF) | dword_F64EB0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue