Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division by Zero on a ManeuverCommand #65

Closed
Peppie84 opened this issue May 31, 2014 · 0 comments
Closed

Division by Zero on a ManeuverCommand #65

Peppie84 opened this issue May 31, 2014 · 0 comments

Comments

@Peppie84
Copy link
Member

if the FlightCore.GetTotalThrust() returns 0 because my engines are deactivated the Flightcomputer will be crash by the calculation of the RemainingTime, only on activated Queue-View. See: http://i.imgur.com/8qWv5a2.png

And this Exception was thrown:
[Exception]: OverflowException: Outside range [MinValue,MaxValue]
System.TimeSpan.From (Double value, Int64 tickMultiplicator)
System.TimeSpan.FromSeconds (Double value)
RemoteTech.RTUtil.FormatDuration (Double duration)
RemoteTech.ManeuverCommand.get_Description ()
RemoteTech.QueueFragment.Draw ()
RemoteTech.FlightComputerWindow.Window (Int32 id)
RemoteTech.AbstractWindow.WindowPre (Int32 uid)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)

Peppie84 referenced this issue in Peppie84/RemoteTech May 31, 2014
The Maneuver is now on hold until you ativate the engine. A short
message will be displayed: http://peppie23.imgur.com/all/
@wms wms mentioned this issue Jun 2, 2014
Peppie84 added a commit that referenced this issue Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant