]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'Lyberta/OKShotgunRefire' into 'master'
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 20 Sep 2018 20:28:28 +0000 (20:28 +0000)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 20 Sep 2018 20:28:28 +0000 (20:28 +0000)
Supposedly fix OKShotgun refire.

Closes #2099

See merge request xonotic/xonotic-data.pk3dir!595

qcsrc/common/mutators/mutator/overkill/okshotgun.qc

index 2f1651776fdab25a67b98a42b0f9e386b44805ea..d8c79e3f2e1e20fae5f4048ca6d35e3b58b0b696 100644 (file)
@@ -45,7 +45,7 @@ METHOD(OverkillShotgun, wr_think, void(entity thiswep, entity actor, .entity wea
        }
        if (fire & 1) // Primary attack
        {
-               if (!weapon_prepareattack(thiswep, actor, weaponentity, false, WEP_CVAR_PRI(okshotgun, animtime)))
+               if (!weapon_prepareattack(thiswep, actor, weaponentity, false, WEP_CVAR_PRI(okshotgun, refire)))
                {
                        return;
                }