]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove muzzleflash when player leaves
authorRudolf Polzer <divverent@alientrap.org>
Sat, 23 Oct 2010 17:08:56 +0000 (19:08 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 23 Oct 2010 17:08:56 +0000 (19:08 +0200)
qcsrc/server/cl_client.qc
qcsrc/server/defs.qh
qcsrc/server/w_uzi.qc

index df6c8d4b2a3f41e0793e271d8aae9a9b54512692..fd7f3dd8a90e016554f017a098795dec285f79bf 100644 (file)
@@ -1668,6 +1668,9 @@ void ClientDisconnect (void)
        if (self.killindicator)
                remove (self.killindicator);
 
        if (self.killindicator)
                remove (self.killindicator);
 
+       if (self.muzzleflash)
+               remove (self.muzzleflash);
+
        WaypointSprite_PlayerGone();
 
        bot_relinkplayerlist();
        WaypointSprite_PlayerGone();
 
        bot_relinkplayerlist();
index d1d86ed79a19703ceb266b0f5d8bf40e6836d7d2..244da90e82e213e794df484a67f7663e30667385 100644 (file)
@@ -651,3 +651,4 @@ string deathmessage;
 .entity realowner;
 
 .float nex_charge;
 .entity realowner;
 
 .float nex_charge;
+.entity muzzleflash;
index d9197412b98287e9805d0736220ee97bbfc4cfb4..b72e5ab0a457de04a034782ee3a449ef139c9f70 100644 (file)
@@ -17,7 +17,6 @@ void W_Uzi_Flash_Go() {
 };
 
 .float uzi_bulletcounter;
 };
 
 .float uzi_bulletcounter;
-.entity muzzleflash;
 void W_Uzi_Attack (float deathtype)
 {
        local entity flash;
 void W_Uzi_Attack (float deathtype)
 {
        local entity flash;