Merge pull request #265 from nonmatch/patch-6

This commit is contained in:
notyourav
2022-01-09 15:39:35 -08:00
committed by GitHub
2 changed files with 2 additions and 53 deletions
+2 -3
View File
@@ -12,13 +12,13 @@ void PlayerItemLantern(Entity* this) {
this->bitfield = 0;
}
NONMATCH("asm/non_matching/playerItemLantern/sub_08054A60.inc", void sub_08054A60(Entity* this)) {
void sub_08054A60(Entity* this) {
this->flags |= 0xa0;
this->action = 0x01;
this->actionDelay = 0x04;
this->frameIndex = -1;
// TODO regalloc and mov 6 too early
this->updatePriority = (this->updatePriority & 0xf0) | 6;
this->updatePriority = 6;
this->field_0x3c = 7;
this->flags2 = -0x80;
this->animationState = gPlayerEntity.animationState & 0xe;
@@ -29,6 +29,5 @@ NONMATCH("asm/non_matching/playerItemLantern/sub_08054A60.inc", void sub_08054A6
LoadSwapGFX(this, 1, 3);
sub_08054AC8(this);
}
END_NONMATCH
ASM_FUNC("asm/non_matching/playerItemLantern/sub_08054AC8.inc", void sub_08054AC8(Entity* this))