mirror of
https://github.com/zeldaret/tp
synced 2026-05-31 01:16:02 -04:00
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
This commit is contained in:
+3
-3
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user