From: havoc Date: Wed, 26 Jul 2006 05:19:31 +0000 (+0000) Subject: use VM_Warning instead of Con_Printf+PRVM_PrintState X-Git-Tag: xonotic-v0.1.0preview~3852 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b8dbe724670d45a923427ff3a57b4ace5d7ce84;p=xonotic%2Fdarkplaces.git use VM_Warning instead of Con_Printf+PRVM_PrintState git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6530 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index fcc6a5cc..f458102c 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -766,15 +766,13 @@ void VM_remove (void) ed = PRVM_G_EDICT(OFS_PARM0); if( PRVM_NUM_FOR_EDICT(ed) <= prog->reserved_edicts ) { - Con_DPrint( "VM_remove: tried to remove the null entity or a reserved entity!\n" ); if (developer.integer >= 1) - PRVM_PrintState(); + VM_Warning( "VM_remove: tried to remove the null entity or a reserved entity!\n" ); } else if( ed->priv.required->free ) { - Con_DPrint( "VM_remove: tried to remove an already freed entity!\n" ); if (developer.integer >= 1) - PRVM_PrintState(); + VM_Warning( "VM_remove: tried to remove an already freed entity!\n" ); } else PRVM_ED_Free (ed); diff --git a/svvm_cmds.c b/svvm_cmds.c index 9a16e9a8..863944a3 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -1254,14 +1254,14 @@ sizebuf_t *WriteDest (void) entnum = PRVM_NUM_FOR_EDICT(ent); if (entnum < 1 || entnum > svs.maxclients || !svs.clients[entnum-1].active || !svs.clients[entnum-1].netconnection) { - Con_Printf ("WriteDest: tried to write to non-client\n");PRVM_PrintState(); + VM_Warning ("WriteDest: tried to write to non-client\n"); return &sv.reliable_datagram; } else return &svs.clients[entnum-1].netconnection->message; default: - Con_Printf ("WriteDest: bad destination\n");PRVM_PrintState(); + VM_Warning ("WriteDest: bad destination\n"); case MSG_ALL: return &sv.reliable_datagram;