From 4ddca816e00a76455921d974872b11bfa089b5c6 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Fri, 16 Oct 2015 23:26:55 +0100 Subject: [PATCH] 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. --- src/world/sprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/sprite.c b/src/world/sprite.c index f195f2adda..507452b870 100644 --- a/src/world/sprite.c +++ b/src/world/sprite.c @@ -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;