]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index a21864f07ec57a2c352b4f3b2afba6ae37cf17c7..de7559222744c29760621dc65a21ebc12a2a894f 100644 (file)
@@ -52,7 +52,7 @@ void WarpZone_crosshair_trace(entity pl)
 }
 
 
-string admin_name(void)
+string admin_name()
 {
        if(autocvar_sv_adminnick != "")
                return autocvar_sv_adminnick;
@@ -1082,7 +1082,7 @@ void remove_safely(entity e)
     builtin_remove(e);
 }
 
-void InitializeEntity(entity e, void(void) func, float order)
+void InitializeEntity(entity e, void() func, float order)
 {
     entity prev, cur;
 
@@ -1158,7 +1158,7 @@ bool EliminatedPlayers_SendEntity(entity this, entity to, float sendflags)
 {
        float i, f, b;
        entity e;
-       WriteByte(MSG_ENTITY, ENT_CLIENT_ELIMINATEDPLAYERS);
+       WriteHeader(MSG_ENTITY, ENT_CLIENT_ELIMINATEDPLAYERS);
        WriteByte(MSG_ENTITY, sendflags);
 
        if(sendflags & 1)
@@ -1341,7 +1341,7 @@ float WarpZone_Projectile_Touch_ImpactFilter_Callback()
        return false;
 }
 
-
+/** engine callback */
 void URI_Get_Callback(float id, float status, string data)
 {
        if(url_URI_Get_Callback(id, status, data))
@@ -1603,7 +1603,7 @@ vector gettaginfo_relative(entity e, float tag)
 bool modeleffect_SendEntity(entity this, entity to, int sf)
 {
        float f;
-       WriteByte(MSG_ENTITY, ENT_CLIENT_MODELEFFECT);
+       WriteHeader(MSG_ENTITY, ENT_CLIENT_MODELEFFECT);
 
        f = 0;
        if(self.velocity != '0 0 0')