Merge pull request #664 from KEKW555/KEKW555-patch-1

This commit is contained in:
Theo 2023-12-25 19:28:42 -08:00 committed by GitHub
commit bcf5a11c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 28 deletions

View File

@ -82,13 +82,11 @@ void Enemy50_OnCollision(Enemy50Entity* this) {
sub_08041134(this);
sub_0803F6EC(this);
}
if (super->hitType == 0x25) {
if (super->contactFlags == 0x80) {
if (super->hitType == 0x25 && super->contactFlags == 0x80) {
super->action = 8;
InitializeAnimation(super, 3);
goto _08040C9C;
}
} else if (super->contactFlags == 0x80) {
} else {
if (super->contactFlags == 0x80) {
this->unk_7c = 0x78;
sub_08041128(this);
}
@ -115,7 +113,7 @@ void Enemy50_OnCollision(Enemy50Entity* this) {
}
this->unk_7a = super->health;
}
_08040C9C:
}
EnemyFunctionHandlerAfterCollision(super, Enemy50_Functions);
}