]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/misc/corner.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / misc / corner.qc
index 4294eac2aad6f2f577e5a46cb63d2548557b5f6d..1623ac4fc402a4a51cb96ab93c45477969664a84 100644 (file)
@@ -1,7 +1,7 @@
 #ifdef SVQC
 bool corner_send(entity to, int sf)
-{
-       WriteByte(MSG_ENTITY, ENT_CLIENT_CORNER);
+{SELFPARAM();
+       WriteHeader(MSG_ENTITY, ENT_CLIENT_CORNER);
 
        WriteString(MSG_ENTITY, self.platmovetype);
 
@@ -26,7 +26,7 @@ void corner_link()
        //Net_LinkEntity(self, false, 0, corner_send);
 }
 
-void spawnfunc_path_corner()
+spawnfunc(path_corner)
 {
        // setup values for overriding train movement
        // if a second value does not exist, both start and end speeds are the single value specified
@@ -37,7 +37,7 @@ void spawnfunc_path_corner()
 #elif defined(CSQC)
 
 void corner_remove()
-{
+{SELFPARAM();
        if(self.target) { strunzone(self.target); }
        self.target = string_null;
 
@@ -57,7 +57,7 @@ void corner_remove()
        self.platmovetype = string_null;
 }
 
-void ent_corner()
+NET_HANDLE(ENT_CLIENT_CORNER, bool isnew)
 {
        self.platmovetype = strzone(ReadString());
 
@@ -75,6 +75,8 @@ void ent_corner()
 
        self.wait = ReadByte();
 
+       return = true;
+
        self.classname = "path_corner";
        self.drawmask = MASK_NORMAL;
        self.entremove = corner_remove;