From 260706cb9fbb0ef378d7be961aab8fd0fd59c99c Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Mon, 2 Nov 2020 19:22:53 +0100 Subject: [PATCH] Fix door opening for buildings with 10+ doors (#7975) --- addons/interaction/functions/fnc_getDoorAnimations.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/interaction/functions/fnc_getDoorAnimations.sqf b/addons/interaction/functions/fnc_getDoorAnimations.sqf index 003cce7664..f23a4f0ffd 100644 --- a/addons/interaction/functions/fnc_getDoorAnimations.sqf +++ b/addons/interaction/functions/fnc_getDoorAnimations.sqf @@ -23,10 +23,13 @@ params ["_house", "_door"]; private _animate = animationNames _house; private _animations = []; private _lockedVariable = []; +private _numberStrings = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; { private _animName = toLower _x; - if ((_animName find (toLower _door)) != -1) then { + private _index = _animName find toLower _door; + + if (_index != -1 && {!(_animName select [_index + count _door, 1] in _numberStrings)}) then { if (((_animName find "disabled") != -1) || ((_animName find "locked") != -1)) then { _lockedVariable pushBack _animName; } else {