diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-11-23 18:23:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-23 15:23:44 -0800 |
| commit | 8d53f6dd591abb21e9474a5ad85ee19eb58f2e50 (patch) | |
| tree | fa0119425e15c8be3f7833b6b4379b8eb50412cc /src/d/d_camera.cpp | |
| parent | eaf980174f97ca1ee08df8c93a4459fba9527bad (diff) | |
Fix more nonmatchings (#2850)
* Fix GetPolyIndex and GetBgIndex, fixing a couple regallocs
* Match daNpcCd2_c::checkFearSituation and daNpcCd2_c::getAnmP
* Match daAlink_c::jointControll
* Clean up float class checks
* Move float constants to global.h
Diffstat (limited to 'src/d/d_camera.cpp')
| -rw-r--r-- | src/d/d_camera.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index b2239a9c4e..1e20a11c2b 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -9947,15 +9947,15 @@ static void store(camera_process_class* i_camera) { error = true; OS_REPORT("camera: ERROR: bad direction !!\n"); } - if (fovy < 0.0f || fpclassify(fovy) == FP_QNAN) { + if (fovy < 0.0f || isnan(fovy)) { error = true; OS_REPORT("camera: ERROR: bad fovy !!\n"); } - if (fpclassify(eye.x) == FP_QNAN || fpclassify(eye.y) == FP_QNAN || fpclassify(eye.z) == FP_QNAN) { + if (isnan(eye.x) || isnan(eye.y) || isnan(eye.z)) { error = true; OS_REPORT("camera: ERROR: bad eye !!\n"); } - if (fpclassify(center.x) == FP_QNAN || fpclassify(center.y) == FP_QNAN || fpclassify(center.z) == FP_QNAN) { + if (isnan(center.x) || isnan(center.y) || isnan(center.z)) { error = true; OS_REPORT("camera: ERROR: bad eye !!\n"); } |
