1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Possible fix to #2049.

I need this confirmed as I can't reproduce the issue even when I change the peep logic to always being sick.
This commit is contained in:
duncanspumpkin
2015-10-16 23:26:55 +01:00
parent 76252a32d9
commit 4ddca816e0

View File

@@ -538,8 +538,8 @@ void litter_create(int x, int y, int z, int direction, int type)
uint16 spriteIndex, nextSpriteIndex;
uint32 newestLitterCreationTick;
x += TileDirectionDelta[direction].x / 8;
y += TileDirectionDelta[direction].y / 8;
x += TileDirectionDelta[direction >> 3].x / 8;
y += TileDirectionDelta[direction >> 3].y / 8;
if (!litter_can_be_at(x, y, z))
return;