]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix superweapons detection better
authorRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 13:02:03 +0000 (14:02 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 13:02:03 +0000 (14:02 +0100)
qcsrc/server/cl_client.qc

index ab9a2b0b7f1647558e4fe96a221c817960adf051..607e93c39bd03e32e0df3846d1c641c89bc5a28d 100644 (file)
@@ -1917,9 +1917,9 @@ void player_powerups (void)
                                }
                        }
                }
-               else
+               else if(self.weapons & WEPBIT_SUPERWEAPONS)
                {
-                       if (time < self.superweapons_finished || ((self.weapons & WEPBIT_SUPERWEAPONS) && (self.items & IT_UNLIMITED_SUPERWEAPONS)))
+                       if (time < self.superweapons_finished || (self.items & IT_UNLIMITED_SUPERWEAPONS))
                        {
                                self.items = self.items | IT_SUPERWEAPON;
                                sprint(self, "^3You now have a superweapon\n");