Skip to content

Commit

Permalink
Merge pull request #893 from CBATeam/settings-editable-in-unnamed-mis…
Browse files Browse the repository at this point in the history
…sion

make settings ediable in unsaved mission
  • Loading branch information
Killswitch00 authored Mar 7, 2018
2 parents 230cb21 + fd0182a commit 9f7359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/settings/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@

#define CAN_SET_SERVER_SETTINGS ((isServer || {IS_ADMIN_LOGGED}) && {!isNull GVAR(server)}) // in single player, as host (local server) or as logged in (not voted) admin connected to a dedicated server
#define CAN_SET_CLIENT_SETTINGS !isServer // in multiplayer as dedicated client
#define CAN_SET_MISSION_SETTINGS (is3den && {!(missionName in ["", "tempMissionSP", "tempMissionMP"])}) // in editor with existing mission.sqm
#define CAN_SET_MISSION_SETTINGS is3den // in editor

#define CAN_VIEW_SERVER_SETTINGS !isNull GVAR(server) // everyone can peak at those in multiplayer
#define CAN_VIEW_CLIENT_SETTINGS !isServer // in multiplayer as dedicated client
#define CAN_VIEW_MISSION_SETTINGS ((is3den || {missionVersion >= 15}) && {!(missionName in ["", "tempMissionSP", "tempMissionMP"])}) // can view those in 3den or 3den missions
#define CAN_VIEW_MISSION_SETTINGS (is3den || {missionVersion >= 15}) // can view those in 3den or 3den missions

#define HASH_NULL ([] call CBA_fnc_hashCreate)
#define NAMESPACE_NULL objNull
Expand Down

0 comments on commit 9f7359e

Please sign in to comment.