Skip to content

Commit

Permalink
Fixed map rendering (#173)
Browse files Browse the repository at this point in the history
Fixed CeaseFire UI not updating with the map open
  • Loading branch information
Cre8or authored Jul 30, 2023
1 parent d4bcc80 commit efe98ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/ceasefire/fn_client_ceasefireUI.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ _UI setVariable ["endTime", _endTime];
// Continuously update the UI
if (isNil "cafe_ceasefire_client_UI_EH") then {cafe_ceasefire_client_UI_EH = -1};

removeMissionEventHandler ["Draw3D", cafe_ceasefire_client_UI_EH];
cafe_ceasefire_client_UI_EH = addMissionEventHandler ["Draw3D", {
removeMissionEventHandler ["EachFrame", cafe_ceasefire_client_UI_EH];
cafe_ceasefire_client_UI_EH = addMissionEventHandler ["EachFrame", {

if (isGamePaused) exitWith {};

private _UI = uiNamespace getVariable ["CAFE_RscCeasefire", displayNull];
private _ctrlGroup = _UI displayCtrl MACRO_IDC_CF_CTRLGROUP;
Expand Down

0 comments on commit efe98ee

Please sign in to comment.