mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 10:26:16 -04:00
Merge remote-tracking branch 'origin/main' into 26-02-27-pjb-dev-2
This commit is contained in:
+5
-4
@@ -21,6 +21,7 @@
|
||||
#include "m_Do/m_Do_graphic.h"
|
||||
#include "m_Do/m_Do_lib.h"
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
#if DEBUG
|
||||
#include "d/d_debug_pad.h"
|
||||
@@ -10130,7 +10131,7 @@ bool dCamera_c::eventCamera(s32 param_0) {
|
||||
}
|
||||
|
||||
int* sp90_i;
|
||||
if (getEvStringData(sp90, "Trim", "DEFAULT") != NULL) {
|
||||
if (getEvStringData(sp90, "Trim", "DEFAULT") != false) {
|
||||
sp90_i = (int*)sp90;
|
||||
if (*sp90_i == 'STAN') {
|
||||
mEventData.field_0x1c = 0;
|
||||
@@ -10842,15 +10843,15 @@ static void store(camera_process_class* i_camera) {
|
||||
error = true;
|
||||
OS_REPORT("camera: ERROR: bad direction !!\n");
|
||||
}
|
||||
if (fovy < 0.0f || isnan(fovy)) {
|
||||
if (fovy < 0.0f || std::isnan(fovy)) {
|
||||
error = true;
|
||||
OS_REPORT("camera: ERROR: bad fovy !!\n");
|
||||
}
|
||||
if (isnan(eye.x) || isnan(eye.y) || isnan(eye.z)) {
|
||||
if (std::isnan(eye.x) || std::isnan(eye.y) || std::isnan(eye.z)) {
|
||||
error = true;
|
||||
OS_REPORT("camera: ERROR: bad eye !!\n");
|
||||
}
|
||||
if (isnan(center.x) || isnan(center.y) || isnan(center.z)) {
|
||||
if (std::isnan(center.x) || std::isnan(center.y) || std::isnan(center.z)) {
|
||||
error = true;
|
||||
OS_REPORT("camera: ERROR: bad eye !!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user