Skip to content

Commit ed639ad

Browse files
committed
Automatic merge of T1.5.1-1692-g8b2dd97c0 and 16 pull requests
- Pull request #900 at 4629736: DMI in 3D cab + two more dials - Pull request #1030 at d3ae4a2: Refactor settings, in prep for settings exporter - Pull request #1045 at cc4d53c: Bugfix: Empty Start Time for Explore, and other issues loading from Menu Selection and Content Routes - Pull request #1052 at 5bbc476: Content Manager: Add axle count, and lowest derail force - Pull request #1062 at 3b18c48: Train Forces popup Window. - Pull request #1064 at 9b3415e: Add Train Info tab to Help window (F1) - Pull request #1066 at 62c89c1: Log derailment, using TraceInformation. - Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH - Pull request #1000 at d8d9709: Locomotive operation from control car - Pull request #1029 at 92c74ef: Superelevation Follow Up Fixes - Pull request #1057 at 50c3789: Switchable brake system - Pull request #1065 at 409064d: Fix for PantographToggle sound event - Pull request #1069 at 3f153f0: Mouse wheel control only with Alt – Followup for #1051 - Pull request #1055 at 90bbcff: Route Based TTrack Sounds - Pull request #896 at f1681df: First implementation of https://blueprints.launchpad.net/or/+spec/specific-sounds-for-ai-trains - Pull request #1049 at 4dd8c4f: Re-organise document storage and access
18 parents 0b6d60c + 8b2dd97 + 4629736 + d3ae4a2 + cc4d53c + 5bbc476 + 3b18c48 + 9b3415e + 62c89c1 + 1f5ba4c + d8d9709 + 92c74ef + 50c3789 + 409064d + 3f153f0 + 90bbcff + f1681df + 4dd8c4f commit ed639ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/Cameras.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ protected void ZoomByMouseWheel(float speed)
270270
{
271271
// Will not zoom-in-out when help windows is up.
272272
// TODO: Property input processing through WindowManager.
273-
if (UserInput.IsMouseWheelChanged && !UserInput.IsDown(UserCommand.GameSwitchWithMouse) && !Viewer.HelpWindow.Visible)
273+
if (UserInput.IsMouseWheelChanged && (!UserInput.IsDown(UserCommand.GameSwitchWithMouse) || !(this is ThreeDimCabCamera)) && !Viewer.HelpWindow.Visible)
274274
{
275275
var fieldOfView = MathHelper.Clamp(FieldOfView - speed * UserInput.MouseWheelChange / 10, 1, 135);
276276
new FieldOfViewCommand(Viewer.Log, fieldOfView);

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ public virtual int GetDrawIndex()
23402340
/// </summary>
23412341
float NormalizedMouseMovement()
23422342
{
2343-
var mouseWheelChange = UserInput.IsDown(UserCommand.GameSwitchWithMouse) ? UserInput.MouseWheelChange : 0;
2343+
var mouseWheelChange = (UserInput.IsDown(UserCommand.GameSwitchWithMouse) ? UserInput.MouseWheelChange : 0) / 5;
23442344
return (ControlDiscrete.Orientation > 0
23452345
? (float)(UserInput.MouseMoveY + mouseWheelChange) / (float)Control.Height
23462346
: (float)(UserInput.MouseMoveX + mouseWheelChange) / (float)Control.Width)

0 commit comments

Comments
 (0)