mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-09 04:23:14 -05:00
0xFF
This commit is contained in:
parent
f59b87ce5e
commit
0d1a5ec00c
|
|
@ -8415,7 +8415,7 @@ void SetObjectSubpriorityByElevation(u8 elevation, struct Sprite *sprite, u8 sub
|
|||
{
|
||||
u16 y;
|
||||
|
||||
y = (sprite->y - sprite->centerToCornerVecY + gSpriteCoordOffsetY + 8) & 0xff;
|
||||
y = (sprite->y - sprite->centerToCornerVecY + gSpriteCoordOffsetY + 8) & 0xFF;
|
||||
y = (16 - (y >> 4)) << 1;
|
||||
|
||||
sprite->subpriority = sElevationToSubpriority[elevation] + y + subpriority;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user