]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
clear superweapons_finished once lost
authorRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 13:03:06 +0000 (14:03 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 19 Jan 2012 13:03:06 +0000 (14:03 +0100)
qcsrc/server/cl_client.qc

index 607e93c39bd03e32e0df3846d1c641c89bc5a28d..f4666eb13428166b9f4cf6c4044b3bef43c5010f 100644 (file)
@@ -1925,7 +1925,14 @@ void player_powerups (void)
                                sprint(self, "^3You now have a superweapon\n");
                        }
                        else
+                       {
+                               self.superweapons_finished = 0;
                                self.weapons &~= WEPBIT_SUPERWEAPONS; // just in case
+                       }
+               }
+               else
+               {
+                       self.superweapons_finished = 0;
                }
        }