Skip to content

Commit

Permalink
fix scripted optics in pause menu in MP (#1160)
Browse files Browse the repository at this point in the history
* draw scripted optic in pause menu in MP

* draw scripted optic in pause menu in MP
  • Loading branch information
commy2 authored Jun 13, 2019
1 parent 3606d6f commit 2c326e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons/optics/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ class Extended_DisplayLoad_EventHandlers {
class RscDisplayInterrupt {
ADDON = QUOTE(_this call (uiNamespace getVariable 'FUNC(initDisplayInterrupt)'));
};
class RscDisplayMPInterrupt {
ADDON = QUOTE(_this call (uiNamespace getVariable 'FUNC(initDisplayInterrupt)'));
};
};
2 changes: 1 addition & 1 deletion addons/optics/fnc_initDisplayInterrupt.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ _script ctrlSetPosition [0,0,0,0];
_script ctrlCommit 0;

_script ctrlAddEventHandler ["Draw", {
if (isNull (uiNamespace getVariable ["RscDisplayInterrupt", displayNull])) then {
if (isNull (uiNamespace getVariable [["RscDisplayInterrupt", "RscDisplayMPInterrupt"] select isMultiplayer, displayNull])) then {
{
QGVAR(pauseOpticLayer) cutText ["", "PLAIN"];
} call CBA_fnc_execNextFrame;
Expand Down

0 comments on commit 2c326e2

Please sign in to comment.