]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/nix/nix.qc
Remove weapon SELFPARAM
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / nix / nix.qc
index 0b6908a8b31ed512f35330ea13c85110cf712b0b..e51003204c54e0a949dfde20d580fa1fcadf1845 100644 (file)
@@ -160,7 +160,7 @@ void NIX_GiveCurrentWeapon()
                else
                        Send_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER, CENTER_NIX_NEWWEAPON, nix_weapon);
 
-               e.wr_resetplayer(e);
+               e.wr_resetplayer(e, self);
 
                // all weapons must be fully loaded when we spawn
                if(e.spawnflags & WEP_FLAG_RELOADABLE) // prevent accessing undefined cvars
@@ -209,7 +209,7 @@ void NIX_GiveCurrentWeapon()
                if(!client_hasweapon(self, PS(self).m_switchweapon, true, false))
                {
                        if(client_hasweapon(self, w, true, false))
-                               W_SwitchWeapon(w);
+                               W_SwitchWeapon(self, w);
                }
 }