]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_cmds.c
removed \n from all Host_Error, Sys_Error, PRVM_ERROR, PF_ERROR calls, since Host_Err...
[xonotic/darkplaces.git] / pr_cmds.c
index 23edb617d31057d66a177123746b7abf3b8fcbc1..7d994956ef49d24b5e3c8bf21527ebef4fd7d36c 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -316,7 +316,7 @@ void SetMinMaxSize (prvm_edict_t *e, float *min, float *max, qboolean rotate)
 
        for (i=0 ; i<3 ; i++)
                if (min[i] > max[i])
-                       PF_ERROR("SetMinMaxSize: backwards mins/maxs\n");
+                       PF_ERROR("SetMinMaxSize: backwards mins/maxs");
 
 // set derived values
        VectorCopy (min, e->fields.server->mins);
@@ -717,7 +717,7 @@ break()
 */
 void PF_break (void)
 {
-       PF_ERROR("break: break statement\n");
+       PF_ERROR("break: break statement");
 }
 
 /*
@@ -855,7 +855,7 @@ void PF_checkpos (void)
 //============================================================================
 
 int checkpvsbytes;
-qbyte checkpvs[MAX_MAP_LEAFS/8];
+unsigned char checkpvs[MAX_MAP_LEAFS/8];
 
 int PF_newcheckclient (int check)
 {
@@ -1547,7 +1547,7 @@ PF_pointcontents
 */
 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)));
 }
 
 /*
@@ -1808,7 +1808,7 @@ sizebuf_t *WriteDest (void)
                ent = PRVM_PROG_TO_EDICT(prog->globals.server->msg_entity);
                entnum = PRVM_NUM_FOR_EDICT(ent);
                if (entnum < 1 || entnum > svs.maxclients || !svs.clients[entnum-1].active)
-                       Host_Error("WriteDest: tried to write to non-client\n");
+                       Host_Error("WriteDest: tried to write to non-client");
                return &svs.clients[entnum-1].message;
 
        case MSG_ALL: