Config: Resolve ATC conflict

This commit is contained in:
Marc Riera 2024-12-26 00:36:28 +01:00
parent 7f3388b24a
commit ebb673c4d5

View file

@ -175,7 +175,10 @@ namespace OpenbveFcmbTrainPlugin
switch (Key)
{
case "enabled":
PluginSettings.AtcBombardierDeviceEnabled = string.Compare(Value, "false", StringComparison.OrdinalIgnoreCase) != 0;
if (!PluginSettings.AtcDimetronicDeviceEnabled)
{
PluginSettings.AtcBombardierDeviceEnabled = string.Compare(Value, "false", StringComparison.OrdinalIgnoreCase) != 0;
}
break;
case "initializationtime":
{
@ -215,7 +218,10 @@ namespace OpenbveFcmbTrainPlugin
switch (Key)
{
case "enabled":
PluginSettings.AtcDimetronicDeviceEnabled = string.Compare(Value, "false", StringComparison.OrdinalIgnoreCase) != 0;
if (!PluginSettings.AtcBombardierDeviceEnabled)
{
PluginSettings.AtcDimetronicDeviceEnabled = string.Compare(Value, "false", StringComparison.OrdinalIgnoreCase) != 0;
}
break;
case "yardspeedlimit":
{