mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Retain current settings when invalid settings given
This commit is contained in:
parent
248cdf1f3f
commit
766b1e1dcd
@ -43,11 +43,11 @@ params [
|
|||||||
|
|
||||||
// Normalize input
|
// Normalize input
|
||||||
if !(_mode in GVAR(availableModes)) then {
|
if !(_mode in GVAR(availableModes)) then {
|
||||||
_mode = GVAR(availableModes) select 0;
|
_mode = GVAR(availableModes) select ((GVAR(availableModes) find GVAR(camMode)) max 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
if !(_vision in GVAR(availableVisions)) then {
|
if !(_vision in GVAR(availableVisions)) then {
|
||||||
_vision = GVAR(availableVisions) select 0;
|
_vision = GVAR(availableVisions) select ((GVAR(availableVisions) find GVAR(camVision)) max 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
GVAR(camPan) = ((_heading % 360) max 0);
|
GVAR(camPan) = ((_heading % 360) max 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user