mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 12:52:51 -04:00
Big cast cleanup (#3076)
* Big cast cleanup * fix for name conflict * rename header * rename cast macros * fix rename mistake --------- Co-authored-by: roeming <roeming@users.noreply.github.com>
This commit is contained in:
@@ -902,16 +902,16 @@ void daE_YMB_c::executeFly() {
|
||||
if (fVar1 > 1800.0f) {
|
||||
adj_angle = playerAngleY + 0x8000 + cM_rndFX(2048.0f);
|
||||
if ((s16)(cLib_targetAngleY(¤t.pos, &field_0x69c) - playerAngleY) > 0) {
|
||||
adj_angle -= (s16) 0x1800;
|
||||
ANGLE_SUB(adj_angle, 0x1800);
|
||||
} else {
|
||||
adj_angle += (s16) 0x1800;
|
||||
ANGLE_ADD(adj_angle, 0x1800);
|
||||
}
|
||||
} else {
|
||||
adj_angle = playerAngleY + 0x8000 + cM_rndFX(2048.0f);
|
||||
if (cM_rnd() < 0.5f) {
|
||||
adj_angle += (s16) 0x1800;
|
||||
ANGLE_ADD(adj_angle, 0x1800);
|
||||
} else {
|
||||
adj_angle -= (s16) 0x1800;
|
||||
ANGLE_SUB(adj_angle, 0x1800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user