]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Cut off CH_PLAYER_SINGLE sounds (i.e. lava and slime) when respawning.
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 22 Oct 2014 09:43:52 +0000 (11:43 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 22 Oct 2014 09:46:08 +0000 (11:46 +0200)
qcsrc/server/cl_client.qc

index 4ab1836e8c0e242828aa2b0e7cf470b1897ea71b..498e4645354ff92adc6e7a1c32f58cb656c69b68 100644 (file)
@@ -524,6 +524,9 @@ void PutClientInServer (void)
                spawnevent.owner = self;
                Net_LinkEntity(spawnevent, FALSE, 0.5, SpawnEvent_Send);
 
+               // Cut off any still running player sounds.
+               stopsound(self, CH_PLAYER_SINGLE);
+
                self.model = "";
                FixPlayermodel();
                self.drawonlytoclient = world;