diff --git a/ValidModeSetupHandler.lua b/ValidModeSetupHandler.lua index 762d5326b..60fd87e8f 100644 --- a/ValidModeSetupHandler.lua +++ b/ValidModeSetupHandler.lua @@ -84,10 +84,10 @@ end ---checks if the "mode" is allowed and not disallowed for the vehicle ---@param int : cpMode to check ---@param vehicle : object, implement,vehicle ----@return boolean : isAllowedOkay, boolean : isDisallowedOkay +---@return boolean, boolean : true = setup allows this mode, true = setup does not disable this mode function ValidModeSetupHandler:isModeValid(mode,object) local validData = self.modeSetup[mode] - local isAllowedOkay = false + local isAllowedOkay = true local isDisallowedOkay = true if validData then if validData.allowedSetups then diff --git a/config/ValidModeSetup.xml b/config/ValidModeSetup.xml index e73b785dc..1e2270057 100644 --- a/config/ValidModeSetup.xml +++ b/config/ValidModeSetup.xml @@ -9,6 +9,7 @@ A mode is disabled if one of the specializations under disallowedSetups was found, for either the vehicle or the implement, .. AllowedSetups: + - if empty, or the setup is empty, this mode is enabled - each Setup represents an AND Gate (the vehicle must have all of the specializations listed in the Setup group) - multiple Setups represent an OR GATE - as a combination this work like a "Disjunctive normal form" @@ -67,7 +68,7 @@ - @@ -100,19 +101,16 @@ - + - + - + @@ -181,7 +179,8 @@ - + + diff --git a/modDesc.xml b/modDesc.xml index ed2cc7579..ea17ed169 100644 --- a/modDesc.xml +++ b/modDesc.xml @@ -1,6 +1,6 @@ - 6.03.00035 + 6.03.00036 <!-- en=English de=German fr=French es=Spanish ru=Russian pl=Polish it=Italian br=Brazilian-Portuguese cs=Chinese(Simplified) ct=Chinese(Traditional) cz=Czech nl=Netherlands hu=Hungary jp=Japanese kr=Korean pt=Portuguese ro=Romanian tr=Turkish --> <en>CoursePlay SIX</en>