]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/door.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / door.qc
index 6eaf2547b9f77627682e02db932349fc80da2544..20bedff30cfc983e1b6844fb81e754b2875cb416 100644 (file)
@@ -804,8 +804,8 @@ void door_draw(entity this)
        trigger_draw_generic(this);
 }
 
-void ent_door()
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_DOOR, bool isnew)
+{
        float sf = ReadByte();
 
        if(sf & SF_TRIGGER_INIT)
@@ -874,6 +874,7 @@ void ent_door()
                self.pos2_y = ReadCoord();
                self.pos2_z = ReadCoord();
        }
+       return true;
 }
 
 #endif