Fixed rotating gate palette.
This commit is contained in:
parent
38a21c436f
commit
80a0f61bbb
@ -457,11 +457,12 @@ static const union AffineAnimCmd *const sSpriteAffineAnimTable_RotatingGate[] =
|
||||
sSpriteAffineAnim_RotatingClockwise270to360Faster,
|
||||
};
|
||||
|
||||
#define OBJ_EVENT_PAL_TAG_NPC_1 0x1103
|
||||
|
||||
static const struct SpriteTemplate sSpriteTemplate_RotatingGateLarge =
|
||||
{
|
||||
.tileTag = ROTATING_GATE_TILE_TAG,
|
||||
.paletteTag = 0xFFFF,
|
||||
.paletteTag = OBJ_EVENT_PAL_TAG_NPC_1,
|
||||
.oam = &sOamData_RotatingGateLarge,
|
||||
.anims = sSpriteAnimTable_RotatingGateLarge,
|
||||
.images = NULL,
|
||||
@ -472,7 +473,7 @@ static const struct SpriteTemplate sSpriteTemplate_RotatingGateLarge =
|
||||
static const struct SpriteTemplate sSpriteTemplate_RotatingGateRegular =
|
||||
{
|
||||
.tileTag = ROTATING_GATE_TILE_TAG,
|
||||
.paletteTag = 0xFFFF,
|
||||
.paletteTag = OBJ_EVENT_PAL_TAG_NPC_1,
|
||||
.oam = &sOamData_RotatingGateRegular,
|
||||
.anims = sSpriteAnimTable_RotatingGateRegular,
|
||||
.images = NULL,
|
||||
@ -744,7 +745,7 @@ static u8 RotatingGate_CreateGate(u8 gateId, s16 deltaX, s16 deltaY)
|
||||
|
||||
template.tileTag = gate->shape + ROTATING_GATE_TILE_TAG;
|
||||
|
||||
spriteId = CreateSprite(&template, 0, 0, 0x94);
|
||||
spriteId = CreateSprite(&template, 0, 0, 0x93);
|
||||
if (spriteId == MAX_SPRITES)
|
||||
return MAX_SPRITES;
|
||||
|
||||
@ -752,6 +753,7 @@ static u8 RotatingGate_CreateGate(u8 gateId, s16 deltaX, s16 deltaY)
|
||||
y = gate->y + 7;
|
||||
|
||||
sprite = &gSprites[spriteId];
|
||||
UpdateSpritePaletteByTemplate(&template, sprite);
|
||||
sprite->data[0] = gateId;
|
||||
sprite->coordOffsetEnabled = 1;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user