mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added isNull check to PFH for explicity
This commit is contained in:
parent
efa8252b45
commit
6fb22ebd11
@ -78,8 +78,8 @@ _seatPosOrig = getPosASL _seat;
|
|||||||
TRACE_1("Remove PFH",_player getVariable [ARR_2(QGVAR(isSitting), false)]);
|
TRACE_1("Remove PFH",_player getVariable [ARR_2(QGVAR(isSitting), false)]);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Stand up if chair moves or gets deleted (getPosASL returns [0,0,0] in that case)
|
// Stand up if chair gets deleted or moved
|
||||||
if !((getPosASL _seat) isEqualTo _seatPosOrig) exitWith {
|
if (isNull _seat || !((getPosASL _seat) isEqualTo _seatPosOrig)) exitWith {
|
||||||
_player call FUNC(stand);
|
_player call FUNC(stand);
|
||||||
TRACE_2("Chair moved",getPosASL _seat,_seatPosOrig);
|
TRACE_2("Chair moved",getPosASL _seat,_seatPosOrig);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user