Skip to content

Commit

Permalink
Get rid of intrinsics usage
Browse files Browse the repository at this point in the history
  • Loading branch information
escape209 committed Sep 29, 2024
1 parent 528d0d6 commit e46c2b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SB/Game/zPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,22 @@ U32 zMechIsStartingForth(zPlatform* ent, U16 param_2)
{
if (ent->motion.asset->mech.type == 4)
{
return (__cntlzw(1 - param_2) >> 5) & 0xff;
return param_2 == 1;
}
else
{
return (__cntlzw(param_2) >> 5) & 0xff;
return param_2 == 0;
}
}

U32 zMechIsStartingBack(zPlatform* ent, U16 param_2)
{
if (ent->motion.asset->mech.type == 4)
{
return (__cntlzw(4 - param_2) >> 5) & 0xff;
return param_2 == 4;
}
else
{
return (__cntlzw(3 - param_2) >> 5) & 0xff;
return param_2 == 3;
}
}
}

0 comments on commit e46c2b0

Please sign in to comment.