File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
MissionScripts/MissionInit/ACRE2 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ _spokenText = "";
3838 private _langs = _x select [1 , count _x - 1 ];
3939 {
4040 _curLangId = [_x ,0 ,1 ] call BIS_fnc_trimString ;
41- [_curLangId , _x ] call acre_api_fnc_babelAddLanguageType ;
41+ _tof = [_curLangId , _x ] call acre_api_fnc_babelAddLanguageType ;
4242 } forEach _langs ;
4343
4444 // Set player's spoken languages if they're on this side
@@ -55,9 +55,8 @@ _spokenText = "";
5555 _lanIds = [];
5656 {
5757 _lid = [_x ,0 ,1 ] call BIS_fnc_trimString ;
58- _lanIds append _lid ;
58+ _lanIds append [ _lid ] ;
5959 } foreach (_x select [1 , count _x - 1 ]);
60- _lanIds = _lanIds arrayIntersect _lanIds ;
6160 _lanIds call acre_api_fnc_babelSetSpokenLanguages ;
6261 {
6362 if (_interpreterLangs find _x == - 1 ) then {
@@ -81,6 +80,7 @@ _spokenText = "";
8180if (_interpreters find player ! = - 1 ) then {
8281 _intLanIds = [];
8382 _interpreterLangs = _interpreterLangs arrayIntersect _interpreterLangs ;
83+ systemchat format [" _interpreterLangs: %1" ,_interpreterLangs ];
8484 {
8585 _Intlid = [_x ,0 ,1 ] call BIS_fnc_trimString ;
8686 _intLanIds pushbackunique _Intlid ;
You can’t perform that action at this time.
0 commit comments