From ff5e045d96c0815080d93fca3b48978dead980d4 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 23 Dec 2007 15:05:09 +0000 Subject: [PATCH] improved NaN velocity/NaN origin warnings, they now print the entity number git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7846 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 5169028e..b7adc93b 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -552,12 +552,12 @@ void SV_CheckVelocity (prvm_edict_t *ent) { if (IS_NAN(ent->fields.server->velocity[i])) { - Con_Printf("Got a NaN velocity on %s\n", PRVM_GetString(ent->fields.server->classname)); + Con_Printf("Got a NaN velocity on entity #%i (%s)\n", PRVM_NUM_FOR_EDICT(ent), PRVM_GetString(ent->fields.server->classname)); ent->fields.server->velocity[i] = 0; } if (IS_NAN(ent->fields.server->origin[i])) { - Con_Printf("Got a NaN origin on %s\n", PRVM_GetString(ent->fields.server->classname)); + Con_Printf("Got a NaN origin on entity #%i (%s)\n", PRVM_NUM_FOR_EDICT(ent), PRVM_GetString(ent->fields.server->classname)); ent->fields.server->origin[i] = 0; } } -- 2.39.2