Fix 3D icons not rendering

This commit is contained in:
SilentSpike 2015-07-26 12:13:05 +01:00
parent efbd5189ce
commit b0adf2e2ee

View File

@ -46,19 +46,17 @@ if (_newMode != 1) then {
if (_newMode == 0) then { // Free if (_newMode == 0) then { // Free
// Preserve camUnit value for consistency when manually changing view // Preserve camUnit value for consistency when manually changing view
GVAR(camera) cameraEffect ["internal", "back"]; GVAR(camera) cameraEffect ["internal", "back"];
showCinemaBorder false;
cameraEffectEnableHUD true;
// Apply the camera zoom // Apply the camera zoom
GVAR(camera) camSetFov -(linearConversion [0.01,2,GVAR(camZoom),-2,-0.01,true]); GVAR(camera) camSetFov -(linearConversion [0.01,2,GVAR(camZoom),-2,-0.01,true]);
GVAR(camera) camCommit 0; GVAR(camera) camCommit 0;
// Switch to camera to stop AI group chat // Switch to camera to stop AI group chat
GVAR(camera) switchCamera "internal"; ACE_Player switchCamera "internal";
clearRadio; clearRadio;
// HUD stuff
showCinemaBorder false;
cameraEffectEnableHUD false;
// If new vision isn't available then keep current (unless current also isn't) // If new vision isn't available then keep current (unless current also isn't)
if !(_newVision in GVAR(availableVisions)) then { if !(_newVision in GVAR(availableVisions)) then {
_newVision = GVAR(availableVisions) select ((GVAR(availableVisions) find GVAR(camVision)) max 0); _newVision = GVAR(availableVisions) select ((GVAR(availableVisions) find GVAR(camVision)) max 0);