X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=sv_phys.c;h=411a7c969b748382a723df0a2ef2d28983d17d63;hb=3dec4376ce1b06989ff9ac0cced50d26c7012888;hp=f468a7e9d2a26e4b395b81403b128d7d7855db72;hpb=e72b42f6d10eb7fa60895279157d5525fc6eb03c;p=xonotic%2Fdarkplaces.git diff --git a/sv_phys.c b/sv_phys.c index f468a7e9..411a7c96 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1041,12 +1041,12 @@ void SV_CheckVelocity (prvm_edict_t *ent) // for (i=0 ; i<3 ; i++) { - if (PRVM_IS_NAN(PRVM_serveredictvector(ent, velocity)[i])) + if (isnan(PRVM_serveredictvector(ent, velocity)[i])) { Con_Printf("Got a NaN velocity on entity #%i (%s)\n", PRVM_NUM_FOR_EDICT(ent), PRVM_GetString(prog, PRVM_serveredictstring(ent, classname))); PRVM_serveredictvector(ent, velocity)[i] = 0; } - if (PRVM_IS_NAN(PRVM_serveredictvector(ent, origin)[i])) + if (isnan(PRVM_serveredictvector(ent, origin)[i])) { Con_Printf("Got a NaN origin on entity #%i (%s)\n", PRVM_NUM_FOR_EDICT(ent), PRVM_GetString(prog, PRVM_serveredictstring(ent, classname))); PRVM_serveredictvector(ent, origin)[i] = 0;