fix spectator view if called instantly

If you call setSpectator directly from init.sqf you'll be put into some
weird limbo mode with borders and spectator not working. This should fix
it
This commit is contained in:
Cuel 2015-09-25 12:51:13 +02:00
parent 3471ebef16
commit dcbf977d6d

View File

@ -72,8 +72,10 @@ if (_set) then {
closeDialog 0; closeDialog 0;
}; };
[{
// Create the display // Create the display
(findDisplay 46) createDisplay QGVAR(interface); (findDisplay 46) createDisplay QGVAR(interface);
}, []] call EFUNC(common,execNextFrame);
// Cache and disable nametag settings // Cache and disable nametag settings
if (["ace_nametags"] call EFUNC(common,isModLoaded)) then { if (["ace_nametags"] call EFUNC(common,isModLoaded)) then {