More cleanup

This commit is contained in:
ulteq 2015-06-08 14:31:55 +02:00
parent 264b05e3ec
commit 9fe6f269be
3 changed files with 1 additions and 8 deletions

View File

@ -1,7 +1,6 @@
#include "script_component.hpp" #include "script_component.hpp"
DAGR_RUN = false; DAGR_RUN = false;
DAGR_STP = false;
DAGR_MENU_RUN = false; DAGR_MENU_RUN = false;
DAGR_DIRECTION = true; // true -> degrees; false -> milliradian DAGR_DIRECTION = true; // true -> degrees; false -> milliradian
DAGR_GRID_VECTOR = "00000000"; // Default DAGR_GRID_VECTOR = "00000000"; // Default

View File

@ -24,8 +24,6 @@
135471 cutText ["", "PLAIN"]; 135471 cutText ["", "PLAIN"];
DAGR_RUN = false; DAGR_RUN = false;
DAGR_STP = false;
DAGR_MENU_RUN = true; DAGR_MENU_RUN = true;
DAGR_Menu_Handler = [] execFSM QUOTE(PATHTOF(DAGR_MENU.fsm)); DAGR_Menu_Handler = [] execFSM QUOTE(PATHTOF(DAGR_MENU.fsm));
}; };

View File

@ -32,13 +32,9 @@ if (DAGR_RUN) then {
}; };
[{ [{
EXPLODE_1_PVT(_this select 0,_vehicle); EXPLODE_1_PVT(_this select 0,_vehicle);
if (DAGR_STP || (!alive ACE_player) || (cameraView == "GUNNER") || (vehicle ACE_player != _vehicle)) exitWith { if (!DAGR_RUN || (!alive ACE_player) || (cameraView == "GUNNER") || (vehicle ACE_player != _vehicle)) exitWith {
135471 cutText ["", "PLAIN"]; 135471 cutText ["", "PLAIN"];
DAGR_RUN = false;
DAGR_STP = false;
[_this select 1] call CBA_fnc_removePerFrameHandler; [_this select 1] call CBA_fnc_removePerFrameHandler;
}; };
}, 0.1, [vehicle ACE_player]] call CBA_fnc_addPerFrameHandler; }, 0.1, [vehicle ACE_player]] call CBA_fnc_addPerFrameHandler;
} else {
DAGR_STP = true;
}; };