Skip to content

Commit 25c99a3

Browse files
author
Chris Jakeman
committed
Merge remote-tracking branch 'upstream/master'
2 parents 65faaab + 10c2adb commit 25c99a3

File tree

5 files changed

+13
-38
lines changed

5 files changed

+13
-38
lines changed
-31.8 KB
Loading

Source/Documentation/Manual/options.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ Audio Options
207207

208208
.. image:: images/options-audio.png
209209

210-
Except for very slow computers, it is suggested that you leave the *MSTS
211-
Bin compatible sound* option checked and set the Sound detail level to 5.
210+
Except for very slow computers, it is suggested that you set the Sound detail level to 5.
212211

213212
The *% sound volume* scroll button allows adjustment of the volume of OR
214213
sound. Default is 40.

Source/Menu/Options.Designer.cs

Lines changed: 6 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ public OptionsForm(UserSettings settings, UpdateManager updateManager, bool init
156156
numericWebServerPort.Value = Settings.WebServerPort;
157157

158158
// Audio tab
159-
160-
checkMSTSBINSound.Checked = Settings.MSTSBINSound;
161159
numericSoundVolumePercent.Value = Settings.SoundVolumePercent;
162160
numericSoundDetailLevel.Value = Settings.SoundDetailLevel;
163161
numericExternalSoundPassThruPercent.Value = Settings.ExternalSoundPassThruPercent;
@@ -449,7 +447,6 @@ void buttonOK_Click(object sender, EventArgs e)
449447
Settings.WebServer = checkEnableWebServer.Checked;
450448

451449
// Audio tab
452-
Settings.MSTSBINSound = checkMSTSBINSound.Checked;
453450
Settings.SoundVolumePercent = (int)numericSoundVolumePercent.Value;
454451
Settings.SoundDetailLevel = (int)numericSoundDetailLevel.Value;
455452
Settings.ExternalSoundPassThruPercent = (int)numericExternalSoundPassThruPercent.Value;

Source/Orts.Simulation/Common/Events.cs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,18 +273,6 @@ public static Event From(bool mstsBinEnabled, Source source, int eventID)
273273
switch (source)
274274
{
275275
case Source.MSTSCar:
276-
if (mstsBinEnabled)
277-
{
278-
switch (eventID)
279-
{
280-
// MSTSBin codes (documented at http://mstsbin.uktrainsim.com/)
281-
case 23: return Event.EnginePowerOn;
282-
case 24: return Event.EnginePowerOff;
283-
case 66: return Event.Pantograph2Up;
284-
case 67: return Event.Pantograph2Down;
285-
default: break;
286-
}
287-
}
288276
switch (eventID)
289277
{
290278
// Calculated from inspection of existing engine .sms files and extensive testing.
@@ -310,8 +298,9 @@ public static Event From(bool mstsBinEnabled, Source source, int eventID)
310298
case 20: return Event.DynamicBrakeChange;
311299
case 21: return Event.EngineBrakePressureIncrease; // Event 21 is defined in sound files but never used in MSTS.
312300
case 22: return Event.EngineBrakePressureDecrease; // Event 22 is defined in sound files but never used in MSTS.
313-
// Event 23 is unused in MSTS.
314-
// Event 24 is unused in MSTS.
301+
// MSTSBin codes 23, 24 (documented at http://mstsbin.uktrainsim.com/)
302+
case 23: return Event.EnginePowerOn;
303+
case 24: return Event.EnginePowerOff;
315304
// Event 25 is possibly a vigilance reset in MSTS sound files but is never used.
316305
// Event 26 is a sander toggle in MSTS sound files but is never used.
317306
case 27: return Event.WaterInjector2On;
@@ -352,6 +341,9 @@ public static Event From(bool mstsBinEnabled, Source source, int eventID)
352341
case 62: return Event.UncoupleB;
353342
case 63: return Event.UncoupleC;
354343
// Event 64 is unused in MSTS.
344+
// MSTSBin codes 66, 67 (documented at http://mstsbin.uktrainsim.com/)
345+
case 66: return Event.Pantograph2Up;
346+
case 67: return Event.Pantograph2Down;
355347

356348
// ORTS only Events
357349
case 101: return Event.GearUp; // for gearbox based engines

0 commit comments

Comments
 (0)