From 7dec9833973c5bed6b94dc829eb196f23dcea250 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 24 May 2015 23:56:22 -0500 Subject: [PATCH] #1383 - Fix map shake interfering with other anims Don't run ctrlMapAnimClear each frame, only when ending the animation --- addons/map/functions/fnc_updateMapEffects.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/map/functions/fnc_updateMapEffects.sqf b/addons/map/functions/fnc_updateMapEffects.sqf index 2725276a65..3550df517c 100644 --- a/addons/map/functions/fnc_updateMapEffects.sqf +++ b/addons/map/functions/fnc_updateMapEffects.sqf @@ -57,12 +57,12 @@ if (GVAR(mapShake)) then { } else { if (GVAR(isShaking)) then { // Stop shaking, return to original position + ctrlMapAnimClear _mapCtrl; _mapCtrl ctrlMapAnimAdd [0, _mapScale, GVAR(lastStillPosition)]; ctrlMapAnimCommit _mapCtrl; GVAR(isShaking) = false; } else { // The map is still, store state - ctrlMapAnimClear _mapCtrl; GVAR(lastStillPosition) = _mapCtrl ctrlMapScreenToWorld [0.5, 0.5]; GVAR(lastStillTime) = ACE_time; };