From: Nick S Date: Fri, 2 Jun 2023 16:24:57 +0000 (+0300) Subject: Fix crylink merge X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=23b87a97ebc973b9a8acfd0d77a29e2b60872395;p=xonotic%2Fxonotic-data.pk3dir.git Fix crylink merge --- diff --git a/qcsrc/common/weapons/weapon/crylink.qc b/qcsrc/common/weapons/weapon/crylink.qc index f9a3c27b8a..6a69a7c570 100644 --- a/qcsrc/common/weapons/weapon/crylink.qc +++ b/qcsrc/common/weapons/weapon/crylink.qc @@ -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) {