mirror of https://github.com/pret/pokeemerald.git
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…
Reference in New Issue