Use constants and fix rock fragments' palettes

This commit is contained in:
cbt6 2022-07-13 06:09:56 +08:00
parent 56ca6d4bcc
commit 0feb0e47c9
5 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 B

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

@ -4012,7 +4012,7 @@ static void SpriteCB_DeoxysRockFragment(struct Sprite *sprite)
sprite->y += 12;
break;
}
if (sprite->x < -4 || sprite->x > 244 || sprite->y < -4 || sprite->y > 164)
if (sprite->x < -4 || sprite->x > DISPLAY_WIDTH + 4 || sprite->y < -4 || sprite->y > DISPLAY_HEIGHT + 4)
DestroySprite(sprite);
}