use VM_Warning instead of Con_Printf+PRVM_PrintState
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Jul 2006 05:19:31 +0000 (05:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 26 Jul 2006 05:19:31 +0000 (05:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6530 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c
svvm_cmds.c

index fcc6a5c..f458102 100644 (file)
@@ -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);
index 9a16e9a..863944a 100644 (file)
@@ -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;