]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When chase_active is enabled either way, force player position for hook origin
authorMario <mario@smbclan.net>
Wed, 27 Dec 2017 00:28:59 +0000 (10:28 +1000)
committerMario <mario@smbclan.net>
Wed, 27 Dec 2017 00:28:59 +0000 (10:28 +1000)
qcsrc/common/weapons/weapon/hook.qc

index 4a21a516947ba0d18a95c178a513b95dbe0269fa..b060484c153fa4946540b71b499f9f9b1afd1abb 100644 (file)
@@ -318,7 +318,7 @@ void Draw_GrapplingHook(entity this)
                {
                        default:
                        case NET_ENT_CLIENT_HOOK:
-                               if(autocvar_chase_active > 0)
+                               if(autocvar_chase_active)
                                        a = csqcplayer.origin;
                                else
                                        a = view_origin + view_forward * vs.x + view_right * -vs.y + view_up * vs.z;