git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6530
d7cf8633-e32d-0410-b094-
e92efae38249
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);
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;