Skip to content

Commit

Permalink
Switch 2 perm PFEH to everyFrame (#5140)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored May 10, 2017
1 parent 5fa9ccc commit 68a6782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/frag/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (isServer) then {
["ace_firedPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedNonPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;

[LINKFUNC(masterPFH), 0, []] call CBA_fnc_addPerFrameHandler;
addMissionEventHandler ["EachFrame", {call FUNC(masterPFH)}];
}] call CBA_fnc_addEventHandler;

// Cache for ammo type configs
Expand Down
6 changes: 2 additions & 4 deletions addons/weather/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ simulWeatherSync;
["ace_settingsInitialized",{
TRACE_1("ace_settingsInitialized eh",GVAR(syncRain));

//Create a 0 sec delay PFEH to update rain every frame:
// update rain every frame:
if (GVAR(syncRain)) then {
[{
0 setRain GVAR(ACE_rain);
}, 0, []] call CBA_fnc_addPerFrameHandler;
addMissionEventHandler ["EachFrame", {0 setRain GVAR(ACE_rain)}];
};

//Create a 1 sec delay PFEH to update wind/rain/temp/humidity:
Expand Down

0 comments on commit 68a6782

Please sign in to comment.