TaktiCool / ArmaAtWar

Public repository for the "Arma At War" mission and modification.
Other
18 stars 11 forks source link

PFH currently can skip one execution when a PFH gets removed #614

Closed jokoho48 closed 7 years ago

jokoho48 commented 7 years ago
[{(_this select 1) call CLib_fnc_removePerfameHandler; diag_log "frame Removed: " + str diag_frameNo;},0] call CLib_fnc_addPerframeHandler;
[{diag_log "frame: " + str diag_frameNo;},0] call CLib_fnc_addPerframeHandler;

expected behavior

"frame Removed: N" "frame: N"

current behavior

"frame Removed: N" "frame: N+1"

jokoho48 commented 7 years ago

https://github.com/TaktiCool/CLib/pull/18 should have fixed it