]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix crylink merge
authorNick S <nick@teichisma.info>
Fri, 2 Jun 2023 16:24:57 +0000 (19:24 +0300)
committerNick S <nick@teichisma.info>
Fri, 2 Jun 2023 16:24:57 +0000 (19:24 +0300)
qcsrc/common/weapons/weapon/crylink.qc

index f9a3c27b8a4ba89ebcaca460e2856feb7a6d7b51..6a69a7c570936f87b24e92f5666fceeb11275c74 100644 (file)
@@ -552,7 +552,7 @@ METHOD(Crylink, wr_think, void(entity thiswep, entity actor, .entity weaponentit
         }
     }
 
-    if((actor.(weaponentity).crylink_waitrelease == 1 && !(primary_fire)) || (actor.(weaponentity).crylink_waitrelease == 2 && !(secondary_fire)))
+    if((actor.(weaponentity).crylink_waitrelease == 1 && !(fire & 1)) || (actor.(weaponentity).crylink_waitrelease == 2 && !(fire & 2)))
     {
         if(!actor.(weaponentity).crylink_lastgroup || time > actor.(weaponentity).crylink_lastgroup.teleport_time)
         {