]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/music.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / music.qc
index c2014bf95ba0bbe515ef14cf5b591a7fc8314887..a1ef4829d46c373665306be2c3e3b3fd4e007ff3 100644 (file)
@@ -286,8 +286,8 @@ void Ent_TriggerMusic_Remove()
        self.noise = string_null;
 }
 
-void Ent_ReadTriggerMusic()
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_TRIGGER_MUSIC, bool isnew)
+{
        int f = ReadByte();
        if(f & 4)
        {
@@ -340,6 +340,7 @@ void Ent_ReadTriggerMusic()
        self.cnt = 1;
        self.think = Ent_TriggerMusic_Think;
        self.nextthink = time;
+       return true;
 }
 
 #endif