summaryrefslogtreecommitdiff
path: root/src/d/d_lib.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-08-07 12:55:30 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-08-07 12:55:30 -0400
commitd287e79ab0e87d46ee9ba9929060ec142510f4b0 (patch)
tree0ac4a2bc6522b587de5547445918bb6f40e00c5a /src/d/d_lib.cpp
parentd2b9d15efb7554f1c7e73c8b71e89c9d48658274 (diff)
Move abs and fabsf to std namespace
Diffstat (limited to 'src/d/d_lib.cpp')
-rw-r--r--src/d/d_lib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_lib.cpp b/src/d/d_lib.cpp
index b9b84811..1124c120 100644
--- a/src/d/d_lib.cpp
+++ b/src/d/d_lib.cpp
@@ -262,7 +262,7 @@ bool dLib_checkPlayerInCircle(cXyz center, f32 radius, f32 halfHeight) {
/* 80057F78-80058098 .text dLib_checkActorInCircle__F4cXyzP10fopAc_ac_cff */
bool dLib_checkActorInCircle(cXyz center, fopAc_ac_c* actor, f32 radius, f32 halfHeight) {
f32 distXZ = (center - actor->current.pos).absXZ();
- f32 distY = fabsf(center.y - actor->current.pos.y);
+ f32 distY = std::fabsf(center.y - actor->current.pos.y);
if (distXZ < radius && distY < halfHeight) {
return true;
}
@@ -272,7 +272,7 @@ bool dLib_checkActorInCircle(cXyz center, fopAc_ac_c* actor, f32 radius, f32 hal
/* 80058098-8005820C .text dLib_checkActorInFan__F4cXyzP10fopAc_ac_cssff */
bool dLib_checkActorInFan(cXyz center, fopAc_ac_c* actor, s16 angleY, s16 fanSpreadAngle, f32 radius, f32 halfHeight) {
f32 distXZ = (center - actor->current.pos).absXZ();
- f32 distY = fabsf(center.y - actor->current.pos.y);
+ f32 distY = std::fabsf(center.y - actor->current.pos.y);
s16 targetY = cLib_targetAngleY(&center, &actor->current.pos);
int angleDistY = cLib_distanceAngleS(angleY, targetY);
if (distXZ < radius && distY < halfHeight && angleDistY < fanSpreadAngle) {