remove redundant unions

This commit is contained in:
theo3
2021-11-12 01:34:34 -08:00
parent f70c95f037
commit ecc8a1439d
257 changed files with 1894 additions and 1923 deletions
+5 -5
View File
@@ -32,11 +32,11 @@ void sub_08099DD0(Entity* this) {
void sub_08099E10(Entity* this) {
if (CheckLocalFlag(0x74)) {
GetNextFrame(this);
if ((this->frames.all == 1) && (this->subAction == 0)) {
this->frames.all = 0;
if ((this->frame == 1) && (this->subAction == 0)) {
this->frame = 0;
sub_08099ECC(this);
}
if (this->frames.b.f3) {
if (this->frame & 0x80) {
this->action = 2;
InitializeAnimation(this, 1);
}
@@ -45,8 +45,8 @@ void sub_08099E10(Entity* this) {
void sub_08099E58(Entity* this) {
GetNextFrame(this);
if (this->frames.b.f3) {
this->frames.b.f3 = 0;
if (this->frame & 0x80) {
this->frame &= ~0x80;
this->actionDelay++;
if (this->actionDelay == 3) {
this->action = 3;