Delete canCreate function

This commit is contained in:
Dystopian 2018-06-03 17:11:56 +03:00
parent 7568c6fa27
commit b8ab9b161c
3 changed files with 6 additions and 25 deletions

View File

@ -5,7 +5,6 @@ PREP(bi_moduleCurator);
PREP(bi_moduleMine);
PREP(bi_moduleProjectile);
PREP(bi_moduleRemoteControl);
PREP(canCreateZeus);
PREP(getModuleDestination);
PREP(handleZeusUnitAssigned);
PREP(moduleAddArsenal);

View File

@ -90,7 +90,12 @@ if (hasInterface) then {
[QGVAR(createZeus), ACE_player] call CBA_fnc_serverEvent;
},
{
call FUNC(canCreateZeus)
switch (GVAR(canCreateZeus)) do {
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed};
case CAN_CREATE_ALL: {true};
default {false};
}
&& {isNil QGVAR(zeus)}
}
] call EFUNC(interact_menu,createAction);

View File

@ -1,23 +0,0 @@
/*
* Author: Dystopian
* Check if zeus can be created.
*
* Arguments:
* None
*
* Return Value:
* Can create zeus
*
* Example:
* call ace_zeus_fnc_canCreateZeus
*
* Public: No
*/
#include "script_component.hpp"
switch (GVAR(canCreateZeus)) do {
case CAN_CREATE_ADMIN: {isServer || {IS_ADMIN_LOGGED}};
case CAN_CREATE_CONSOLE: {call BIS_fnc_isDebugConsoleAllowed};
case CAN_CREATE_ALL: {true};
default {false};
}