Fix conditional in SpriteCB_DeoxysRockFragment

This commit is contained in:
GriffinR 2022-07-12 21:29:36 -04:00
parent 30a5821997
commit f85b4699dc

View File

@ -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);
}