Switch 2 perm PFEH to everyFrame (#5140)

This commit is contained in:
PabstMirror 2017-05-10 11:28:26 -05:00 committed by GitHub
parent 5fa9ccc694
commit 68a6782078
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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: