]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/w_seeker.qc
Replace usages of mod() with the operator %
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / w_seeker.qc
index 7d933d5ca6bb7888f95a36ab841af5a2ad26044f..d4c4d33941efc18591d9a168c918beda8f6d5422 100644 (file)
@@ -323,7 +323,7 @@ void W_Seeker_Fire_Flac(void)
 
        W_DecreaseAmmo(WEP_CVAR(seeker, flac_ammo));
 
-       c = mod(self.bulletcounter, 4);
+       c = self.bulletcounter % 4;
        switch(c)
        {
                case 0:
@@ -430,7 +430,7 @@ void W_Seeker_Vollycontroller_Think(void) // TODO: Merge this with W_Seeker_Atta
        oldenemy = self.enemy;
        self.enemy = oldself.enemy;
 
-       c = mod(self.cnt, 4);
+       c = self.cnt % 4;
        switch(c)
        {
                case 0: