Skip to content

Commit

Permalink
Delete canCreate function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dystopian committed Jun 3, 2018
1 parent 7568c6f commit b8ab9b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
1 change: 0 additions & 1 deletion addons/zeus/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PREP(bi_moduleCurator);
PREP(bi_moduleMine);
PREP(bi_moduleProjectile);
PREP(bi_moduleRemoteControl);
PREP(canCreateZeus);
PREP(getModuleDestination);
PREP(handleZeusUnitAssigned);
PREP(moduleAddArsenal);
Expand Down
7 changes: 6 additions & 1 deletion addons/zeus/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
23 changes: 0 additions & 23 deletions addons/zeus/functions/fnc_canCreateZeus.sqf

This file was deleted.

0 comments on commit b8ab9b1

Please sign in to comment.