From c47fb5c923c0e3b6c44bb068ceb44f7795834f5c Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 20 Dec 2011 20:14:36 +0000 Subject: [PATCH] if(developer_extra.integer) Con_DPrintf("VM_CL_gettagindex(entity #%i): tag \"%s\" not found\n", PRVM_NUM_FOR_EDICT(ent), tag_name); git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11618 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 3 +++ clvm_cmds.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cl_input.c b/cl_input.c index af5289f5..01850eff 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1794,7 +1794,10 @@ void CL_SendMove(void) cl.cmd.msec = (unsigned char)bound(0, msecdelta, 255); // ridiculous value rejection (matches qw) if (cl.cmd.msec > 250) + { + Con_Printf("RIDICULOUS! %f - %f > 0.25 sec, namely, %d ms, quemove=%d\n", cl.cmd.time, cl.movecmd[1].time, (int) msecdelta, (int) quemove); cl.cmd.msec = 100; + } cl.cmd.frametime = cl.cmd.msec * (1.0 / 1000.0); cl.cmd.predicted = cl_movement.integer != 0; diff --git a/clvm_cmds.c b/clvm_cmds.c index a07cee7a..7975bf1e 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -2500,7 +2500,8 @@ static void VM_CL_gettagindex (prvm_prog_t *prog) { tag_index = CL_GetTagIndex(prog, ent, tag_name); if (tag_index == 0) - Con_DPrintf("VM_CL_gettagindex(entity #%i): tag \"%s\" not found\n", PRVM_NUM_FOR_EDICT(ent), tag_name); + if(developer_extra.integer) + Con_DPrintf("VM_CL_gettagindex(entity #%i): tag \"%s\" not found\n", PRVM_NUM_FOR_EDICT(ent), tag_name); } PRVM_G_FLOAT(OFS_RETURN) = tag_index; } -- 2.39.2