Change --x !=/== 0xff comparisons

This commit is contained in:
Tal Hayon
2022-03-28 09:07:30 +03:00
parent 190bc21624
commit 9df9e77512
14 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ void sub_0802AB40(Entity* this) {
this->field_0xf = 0x4;
this->field_0x80.HALF.LO ^= 1;
}
} else if ((--this->field_0xf & 0xff) == 0) {
} else if (--this->field_0xf == 0) {
sub_0802ACDC(this, 4);
}
}
+1 -1
View File
@@ -408,7 +408,7 @@ void sub_08046EF4(GyorgMaleEntity* this) {
super->direction ^= 0x80;
}
super->speed = gUnk_080D1B74[(super->actionDelay >> 3) & 0xF];
if ((--super->field_0xf & 0xFF) == 0) {
if (--super->field_0xf == 0) {
Entity* tmp;
super->field_0xf = (Random() & 0x38) + 0x78;
tmp = CreateProjectile(GYORG_MALE_ENERGY_PROJECTILE);