mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Map - Fix map shake (#7252)
This commit is contained in:
parent
40a66f0bde
commit
82c6c343b2
@ -7,6 +7,12 @@ if (ctrlIDD _display != IDD_MAIN_MAP) exitWith {};
|
||||
private _control = _display displayCtrl IDC_MAP;
|
||||
|
||||
GVAR(lastStillPosition) = _control ctrlMapScreenToWorld [0.5, 0.5];
|
||||
[{
|
||||
if (!GVAR(isShaking)) then { // player map position won't be correct until a frame later
|
||||
GVAR(lastStillPosition) = _this ctrlMapScreenToWorld [0.5, 0.5];
|
||||
};
|
||||
}, _control] call CBA_fnc_execNextFrame;
|
||||
|
||||
GVAR(lastStillTime) = CBA_missionTime;
|
||||
GVAR(isShaking) = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user