]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix something...
authorFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 12:49:05 +0000 (15:49 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 12:49:05 +0000 (15:49 +0300)
qcsrc/server/w_shotgun.qc

index 01fb5071785df8a5c411a364b47f59f714e9c6c3..635b1ccf8b959ac753e4f06ef493605e9049b973 100644 (file)
@@ -77,7 +77,7 @@ void shotgun_meleethink (void)
                Damage (trace_ent, self.owner, self.owner, autocvar_g_balance_shotgun_secondary_damage * min(1, f + 1), WEP_SHOTGUN | HITTYPE_SECONDARY , self.owner.origin + self.owner.view_ofs, force);
                remove(self);
        }
-       else if(time >= self.cnt + meleetime || self.owner.deadflag != DEAD_NO && autocvar_g_balance_shotgun_secondary_melee_no_doubleslap) // missed or owner died, remove ent
+       else if(time >= self.cnt + meleetime || (self.owner.deadflag != DEAD_NO && autocvar_g_balance_shotgun_secondary_melee_no_doubleslap)) // missed or owner died, remove ent
                remove(self);
        else // continue swinging the weapon in hope of hitting someone :)
                self.nextthink = time;