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