Renamed Entity fields for knockback

SolidifiedGaming identified these while glitchhunting.
This commit is contained in:
Ibot02
2021-10-25 13:32:54 +02:00
parent 9bca0fe57f
commit 59076fccb7
33 changed files with 87 additions and 87 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ void sub_080A9334(Entity* this) {
if ((this->bitfield & 0x3f) != 0) {
ModHealth(-2);
sub_080A9488(this);
this->field_0x42 = 0;
this->knockbackDuration = 0;
this->iframes = 0;
} else {
DeleteThisEntity();
@@ -107,7 +107,7 @@ void sub_080A9488(Entity* this) {
this->flags &= 0x7f;
this->actionDelay = 2;
this->field_0x20 = 0x18000;
this->animationState = (this->field_0x3e & 0x18) >> 3;
this->animationState = (this->knockbackDirection & 0x18) >> 3;
EnqueueSFX(SFX_METAL_CLINK);
sub_080A94C0(this, this->animationState);
}