summaryrefslogtreecommitdiff
path: root/src/d/d_camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_camera.cpp')
-rw-r--r--src/d/d_camera.cpp6
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");
}