ATC Dimetronic: ATP code test
This commit is contained in:
parent
da761976b4
commit
e962d851b2
3 changed files with 43 additions and 47 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using OpenBveApi.Runtime;
|
||||
|
||||
namespace OpenbveFcmbTrainPlugin
|
||||
{
|
||||
|
@ -29,7 +30,7 @@ namespace OpenbveFcmbTrainPlugin
|
|||
internal int AtcBombardierYardSpeedLimit = 20;
|
||||
internal int AtcBombardierBlinkTime = 500;
|
||||
|
||||
internal int AtcDimetronicYardSpeedLimit = 25;
|
||||
internal Speed AtcDimetronicYardSpeedLimit = new Speed(25 / 3.6);
|
||||
internal bool AtcDimetronicAtoAvailable;
|
||||
}
|
||||
|
||||
|
@ -199,7 +200,7 @@ namespace OpenbveFcmbTrainPlugin
|
|||
{
|
||||
if (int.TryParse(Value, out int a))
|
||||
{
|
||||
PluginSettings.AtcDimetronicYardSpeedLimit = a;
|
||||
PluginSettings.AtcDimetronicYardSpeedLimit = new Speed(a / 3.6);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue