for (i=0 ; i<3 ; i++)
if (min[i] > max[i])
- PRVM_ERROR("SetMinMaxSize: backwards mins/maxs\n");
+ PRVM_ERROR("SetMinMaxSize: backwards mins/maxs");
// set derived values
VectorCopy (min, e->fields.server->mins);
//============================================================================
int checkpvsbytes;
-qbyte checkpvs[MAX_MAP_LEAFS/8];
+unsigned char checkpvs[MAX_MAP_LEAFS/8];
int PF_newcheckclient (int check)
{
Sends text over to the client's execution buffer
-stuffcmd (clientent, value)
+stuffcmd (clientent, value, ...)
=================
*/
void PF_stuffcmd (void)
{
int entnum;
- const char *str;
client_t *old;
+ char string[VM_STRINGTEMP_LENGTH];
entnum = PRVM_G_EDICTNUM(OFS_PARM0);
if (entnum < 1 || entnum > svs.maxclients || !svs.clients[entnum-1].active)
Con_Print("Can't stuffcmd to a non-client\n");
return;
}
- str = PRVM_G_STRING(OFS_PARM1);
+
+ VM_VarString(1, string, sizeof(string));
old = host_client;
host_client = svs.clients + entnum-1;
- Host_ClientCommands ("%s", str);
+ Host_ClientCommands ("%s", string);
host_client = old;
}
*/
void PF_pointcontents (void)
{
- PRVM_G_FLOAT(OFS_RETURN) = SV_PointQ1Contents(PRVM_G_VECTOR(OFS_PARM0));
+ PRVM_G_FLOAT(OFS_RETURN) = Mod_Q1BSP_NativeContentsFromSuperContents(NULL, SV_PointSuperContents(PRVM_G_VECTOR(OFS_PARM0)));
}
/*
return &svs.clients[entnum-1].message;
default:
- Con_Printf ("WriteDest: bad destination");
+ Con_Printf ("WriteDest: bad destination\n");
case MSG_ALL:
return &sv.reliable_datagram;