From 851d8a8de7aa92dd9268db6b5333873f47c392be Mon Sep 17 00:00:00 2001 From: LlemonDuck Date: Wed, 2 Jun 2021 12:53:08 -0400 Subject: [PATCH] camera: prevent pitch increment with "preserve pitch" enabled When clicking the compass, the vanilla camera will jitter randomly within 5 values. With "compassLookPreservePitch" enabled, spam clicking the compass would cause your camera pitch to rise repeatedly by that random jitter. This places the camera pitch restore callback after the random jitter, to eliminate that discrepancy. --- runelite-client/src/main/scripts/ToplevelCompassOp.rs2asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runelite-client/src/main/scripts/ToplevelCompassOp.rs2asm b/runelite-client/src/main/scripts/ToplevelCompassOp.rs2asm index 630b1bfdbc..fca087a53e 100644 --- a/runelite-client/src/main/scripts/ToplevelCompassOp.rs2asm +++ b/runelite-client/src/main/scripts/ToplevelCompassOp.rs2asm @@ -47,11 +47,11 @@ LOOK: iconst 0 sound_synth iconst 225 - sconst "lookPreservePitch" - runelite_callback iconst 5 randominc add + sconst "lookPreservePitch" + runelite_callback iload 1 ; load target angle cam_forceangle return