shithub: qk1

Download patch

ref: 804836b5a78086c89ac32bdab8e9884418c8b62f
parent: 955a62fe39dcc3c475e6a44d50e9f3f62a7b05aa
author: qwx <qwx@sciops.net>
date: Fri Oct 11 23:07:28 EDT 2024

qw: rename isnanf per qk1 changes

--- a/qw/mathlib.h
+++ b/qw/mathlib.h
@@ -12,7 +12,7 @@
 #define M_PI		3.14159265358979323846264338327950288
 #endif
 
-int isnanf(float f);
+int isNaNf(float f);
 
 struct mplane_s;
 
--- a/qw/sv_phys.c
+++ b/qw/sv_phys.c
@@ -72,12 +72,12 @@
 //
 	for (i=0 ; i<3 ; i++)
 	{
-		if (isnanf(ent->v.velocity[i]))
+		if (isNaNf(ent->v.velocity[i]))
 		{
 			Con_Printf ("Got a NaN velocity on %s\n", PR_GetString(ent->v.classname));
 			ent->v.velocity[i] = 0;
 		}
-		if (isnanf(ent->v.origin[i]))
+		if (isNaNf(ent->v.origin[i]))
 		{
 			Con_Printf ("Got a NaN origin on %s\n", PR_GetString(ent->v.classname));
 			ent->v.origin[i] = 0;