mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-26 13:31:03 +01:00
Fix conditional in SpriteCB_DeoxysRockFragment
This commit is contained in:
parent
30a5821997
commit
f85b4699dc
@ -3816,7 +3816,7 @@ static void SpriteCB_DeoxysRockFragment(struct Sprite* sprite)
|
||||
sprite->y += 12;
|
||||
break;
|
||||
}
|
||||
if ((u16)(sprite->x + 4) > DISPLAY_WIDTH + 8 || sprite->y < -4 || sprite->y > DISPLAY_HEIGHT + 4)
|
||||
if (sprite->x < -4 || sprite->x > DISPLAY_WIDTH + 4 || sprite->y < -4 || sprite->y > DISPLAY_HEIGHT + 4)
|
||||
DestroySprite(sprite);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user