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:
roeming
2026-02-20 05:48:29 -05:00
committed by GitHub
parent 95c3626771
commit 0558bde1e6
138 changed files with 516 additions and 470 deletions
+4 -2
View File
@@ -305,7 +305,8 @@ int daObj_Gadget_c::Execute() {
if (getWallAngle(current.angle.y, &wallAngle)) {
field_0x9f4 = 10;
s16 angleDiff = current.angle.y - wallAngle;
current.angle.y += (s16)((0x8000 - (angleDiff * 2)) + (s16)cM_rndFX(2000.0f));
ANGLE_ADD(current.angle.y,
(0x8000 - (angleDiff * 2)) + (s16)cM_rndFX(2000.0f));
field_0x9ec.y = -field_0x9ec.y / 2;
speedF *= 0.3f;
}
@@ -318,7 +319,8 @@ int daObj_Gadget_c::Execute() {
if (mAcch.ChkWallHit()) {
if (getWallAngle(current.angle.y, &wallAngle)) {
s16 angleDiff = current.angle.y - wallAngle;
current.angle.y += (s16)((0x8000 - (angleDiff << 1)) + (s16)cM_rndFX(1000.0f));
ANGLE_ADD(current.angle.y,
(0x8000 - (angleDiff << 1)) + (s16)cM_rndFX(1000.0f));
speedF *= 0.5f;
}
}