Remove boolcast uses from code

This commit is contained in:
Tal Hayon
2022-02-10 18:59:54 +02:00
parent 16d8e14488
commit ad2b1bc0c3
22 changed files with 91 additions and 72 deletions
+4 -4
View File
@@ -54,11 +54,11 @@ void sub_0809EA80(Entity* this) {
}
void sub_0809EABC(Entity* this) {
bool32 anySet;
u32 f;
bool32 anySet = 0;
f = CheckFlags(this->field_0x86.HWORD);
anySet = BOOLCAST(f);
if (CheckFlags(this->field_0x86.HWORD)) {
anySet = 1;
}
if (this->frameIndex != anySet) {
this->frameIndex = anySet;
}