File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,10 +113,12 @@ GVAR(PFHObject) = [
113113 _justInitialized = true ;
114114 };
115115 // Re-include units that have become player-controlled again (e.g., reconnected players)
116- if (_x getVariable [QGVARMAIN(exclude), false ] && {isPlayer _x }) then {
116+ private _isExcluded = _x getVariable [QGVARMAIN(exclude), false ];
117+ if (_isExcluded && {isPlayer _x }) then {
117118 _x setVariable [QGVARMAIN(exclude), false ];
119+ _isExcluded = false ;
118120 };
119- if (! _justInitialized && {! ( _x getVariable [QGVARMAIN(exclude), false ]) }) then {
121+ if (! _justInitialized && {! _isExcluded }) then {
120122 private _unitRole = _x getVariable [QGVARMAIN(unitType), " " ];
121123 if (GVAR(captureFrameNo) % 10 == 0 || _unitRole == " " ) then {
122124 _unitRole = [_x ] call FUNC(getUnitType);
You can’t perform that action at this time.
0 commit comments