Skip to content

Commit e8886ed

Browse files
authored
Merge pull request #589 from cjakeman/menu-options02g
02g: Removed menu option LODViewingExtention
2 parents 5aa3629 + 760ba43 commit e8886ed

File tree

4 files changed

+23
-41
lines changed

4 files changed

+23
-41
lines changed

Source/Menu/Options.Designer.cs

Lines changed: 18 additions & 31 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ orderby folder.Key
320320
checkConditionalLoadOfNightTextures.Checked = Settings.ConditionalLoadOfDayOrNightTextures;
321321
checkSignalLightGlow.Checked = Settings.SignalLightGlow;
322322
checkCircularSpeedGauge.Checked = Settings.CircularSpeedGauge;
323-
checkLODViewingExtention.Checked = Settings.LODViewingExtention;
324323
checkPreferDDSTexture.Checked = Settings.PreferDDSTexture;
325324
checkUseLocationPassingPaths.Checked = Settings.UseLocationPassingPaths;
326325
checkUseMSTSEnv.Checked = Settings.UseMSTSEnv;
@@ -516,7 +515,6 @@ void buttonOK_Click(object sender, EventArgs e)
516515
Settings.ConditionalLoadOfDayOrNightTextures = checkConditionalLoadOfNightTextures.Checked;
517516
Settings.SignalLightGlow = checkSignalLightGlow.Checked;
518517
Settings.CircularSpeedGauge = checkCircularSpeedGauge.Checked;
519-
Settings.LODViewingExtention = checkLODViewingExtention.Checked;
520518
Settings.PreferDDSTexture = checkPreferDDSTexture.Checked;
521519
Settings.UseLocationPassingPaths = checkUseLocationPassingPaths.Checked;
522520
Settings.UseMSTSEnv = checkUseMSTSEnv.Checked;

Source/Menu/Options.resx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,4 @@
123123
<metadata name="bindingSourceContent.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124124
<value>114, 17</value>
125125
</metadata>
126-
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127-
<value>17, 17</value>
128-
</metadata>
129126
</root>

Source/RunActivity/Viewer3D/Shapes.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ public SharedStaticShapeInstance(Viewer viewer, string path, List<StaticShape> s
184184
// Object radius should extend from central location to the furthest instance location PLUS the actual object radius.
185185
ObjectRadius = shapes.Max(s => (Location.Location - s.Location.Location).Length()) + dlHighest.ViewSphereRadius;
186186

187-
// Object viewing distance is easy because it's based on the outside of the object radius.
188-
if (viewer.Settings.LODViewingExtention)
189-
ObjectViewingDistance = float.MaxValue;
190-
else
191-
ObjectViewingDistance = dlLowest.ViewingDistance;
187+
// Set to MaxValue so that an object never disappears.
188+
// Many MSTS objects had a LOD of 2km which is the maximum distance that MSTS can handle.
189+
// Open Rails can handle greater distances, so we override the lowest-detail LOD to make sure OR shows shapes further away than 2km.
190+
// See http://www.elvastower.com/forums/index.php?/topic/35301-menu-options/page__view__findpost__p__275531
191+
ObjectViewingDistance = float.MaxValue;
192192
}
193193

194194
// Create all the primitives for the shared shape.

0 commit comments

Comments
 (0)