From ebb673c4d5d03d0827771d0f8474cc7b13f25c75 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Thu, 26 Dec 2024 00:36:28 +0100 Subject: [PATCH] Config: Resolve ATC conflict --- src/Managers/ConfigManager.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Managers/ConfigManager.cs b/src/Managers/ConfigManager.cs index 1f13eb2..eae5311 100644 --- a/src/Managers/ConfigManager.cs +++ b/src/Managers/ConfigManager.cs @@ -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": {