]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset mines count on WR_RESETPLAYER request too: it fixes the same bug described...
authorterencehill <piuntn@gmail.com>
Mon, 18 Feb 2013 21:57:01 +0000 (22:57 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 18 Feb 2013 21:57:01 +0000 (22:57 +0100)
qcsrc/server/w_minelayer.qc

index bcce5ebd152ee267046824528cab88450512e1ed..85ffa6399ff0555edb84717ee346f4c56e37c10e 100644 (file)
@@ -513,6 +513,10 @@ float w_minelayer(float req)
                else
                        return FALSE;
        }
+       else if (req == WR_RESETPLAYER)
+       {
+               self.minelayer_mines = 0;
+       }
        else if (req == WR_RELOAD)
        {
                W_Reload(autocvar_g_balance_minelayer_ammo, autocvar_g_balance_minelayer_reload_ammo, autocvar_g_balance_minelayer_reload_time, "weapons/reload.wav");