Interaction - Disable open door action on houses with no user actions (#6760)

Fix #6544
This commit is contained in:
PabstMirror 2019-01-02 09:55:03 -06:00 committed by GitHub
parent 0bb339bf51
commit 6d8cdd9b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,10 @@ TRACE_2("openDoor",_house,_door);
if (isNull _house) exitWith {};
if ((configProperties [configFile >> "CfgVehicles" >> (typeOf _house) >> "UserActions"]) isEqualTo []) exitWith {
TRACE_1("Ignore houses with no UserActions",typeOf _house); // Fix problem with Shoothouse Walls
};
private _getDoorAnimations = [_house, _door] call FUNC(getDoorAnimations);
_getDoorAnimations params ["_animations"];