Performance

This commit is contained in:
eraser1 2015-09-04 11:42:53 -05:00
parent ea28d73468
commit 051450f010
2 changed files with 9 additions and 9 deletions

View File

@ -37,13 +37,13 @@ if ((_pos isEqualTo "ERROR") || ("_text" isEqualTo "ERROR")) exitWith
_num = DMS_MissionCount;
call
switch (_difficulty) do
{
if(_difficulty == "easy") exitWith {_color = "ColorGreen"};
if(_difficulty == "moderate") exitWith {_color = "ColorYellow"};
if(_difficulty == "difficult") exitWith {_color = "ColorRed"};
if(_difficulty == "hardcore") exitWith {_color = "ColorBlack"};
_color = _difficulty;
case "easy": {_color = "ColorGreen";};
case "moderate": {_color = "ColorYellow";};
case "difficult": {_color = "ColorRed";};
case "hardcore" : {_color = "ColorBlack";};
default {_color = _difficulty;};
};
_circle = createMarker [format ["DMS_MissionMarkerCircle%1",_num], _pos];

View File

@ -83,10 +83,10 @@ if !(DMS_ai_default_items isEqualTo []) then
};
call
switch (_type) do
{
if (_type == "random") exitWith { _type = DMS_random_AI call BIS_fnc_selectRandom;};
if (_type == "unarmed") exitWith { _type = "assault";_unarmed = true; };
case "random" : {_type = DMS_random_AI call BIS_fnc_selectRandom;};
case "unarmed" : {_type = "assault";_unarmed = true;};
};
// Unit name