diff --git a/src/world/sprite.c b/src/world/sprite.c index fb253b5745..ede41f10d8 100644 --- a/src/world/sprite.c +++ b/src/world/sprite.c @@ -827,6 +827,9 @@ void sprite_misc_update_all() * dx: z */ void sprite_move(sint16 x, sint16 y, sint16 z, rct_sprite* sprite){ + if (x < 0 || y < 0 || x > 0x1FFF || y > 0x1FFF) + x = 0x8000; + int new_position = x; if (x == (sint16)0x8000)new_position = 0x10000; else{