]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/w_devastator.qc
Replace usages of mod() with the operator %
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / w_devastator.qc
index 2e69c5f537538b7ff734861016a8550df3d54b00..cff16702dfd25fefbf9576594bdcebd8ee096df8 100644 (file)
@@ -544,6 +544,7 @@ float W_Devastator(float req)
                                        self.rl_release = 1;
 
                                if(self.BUTTON_ATCK2)
+                               if(self.switchweapon == WEP_DEVASTATOR)
                                {
                                        rockfound = 0;
                                        for(rock = world; (rock = find(rock, classname, "rocket")); ) if(rock.realowner == self)