mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix reloadMutex nil, fix#3450
This commit is contained in:
parent
f758a90351
commit
03b8e2b590
@ -21,7 +21,7 @@ class Extended_PostInit_EventHandlers {
|
|||||||
|
|
||||||
class Extended_DisplayLoad_EventHandlers {
|
class Extended_DisplayLoad_EventHandlers {
|
||||||
class RscDisplayMission {
|
class RscDisplayMission {
|
||||||
ADDON = QUOTE(_this call COMPILE_FILE(XEH_mainDislayLoad));
|
ADDON = QUOTE(_this call COMPILE_FILE(XEH_missionDislayLoad));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
GVAR(ScrollWheelFrame) = diag_frameno;
|
|
||||||
|
|
||||||
call COMPILE_FILE(init_handleScrollWheel);
|
call COMPILE_FILE(init_handleScrollWheel);
|
||||||
call COMPILE_FILE(init_handleModifierKey);
|
call COMPILE_FILE(init_handleModifierKey);
|
@ -12,11 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// prevents a bug that causes the MouseZChanged to trigger N-times, where N is the number of times you consecutively pressed "Restart" instead of "Preview" in the editor
|
|
||||||
if (GVAR(ScrollWheelFrame) == diag_frameno) exitWith {};
|
|
||||||
|
|
||||||
GVAR(ScrollWheelFrame) = diag_frameno;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
[_this select 1] call _x;
|
[_this select 1] call _x;
|
||||||
false
|
false
|
||||||
|
@ -19,6 +19,6 @@ class Extended_PostInit_EventHandlers {
|
|||||||
|
|
||||||
class Extended_DisplayLoad_EventHandlers {
|
class Extended_DisplayLoad_EventHandlers {
|
||||||
class RscDisplayMission {
|
class RscDisplayMission {
|
||||||
ADDON = QUOTE(_this call COMPILE_FILE(XEH_mainDislayLoad));
|
ADDON = QUOTE(_this call COMPILE_FILE(XEH_missionDislayLoad));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -4,9 +4,6 @@ disableSerialization;
|
|||||||
|
|
||||||
params ["_display"];
|
params ["_display"];
|
||||||
|
|
||||||
// reload mutex, you can't play signal while reloading
|
|
||||||
GVAR(ReloadMutex) = true;
|
|
||||||
|
|
||||||
_display displayAddEventHandler ["KeyDown", {
|
_display displayAddEventHandler ["KeyDown", {
|
||||||
if ((_this select 1) in actionKeys "ReloadMagazine") then {
|
if ((_this select 1) in actionKeys "ReloadMagazine") then {
|
||||||
if (isNull ACE_player || {!alive ACE_player}) exitWith {false};
|
if (isNull ACE_player || {!alive ACE_player}) exitWith {false};
|
@ -2,4 +2,7 @@
|
|||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
|
// reload mutex, you can't play signal while reloading
|
||||||
|
GVAR(ReloadMutex) = true;
|
||||||
|
|
||||||
#include "key.sqf"
|
#include "key.sqf"
|
||||||
|
Loading…
Reference in New Issue
Block a user