@@ -146,7 +146,7 @@ public override void OnStart(StartState state)
146146 {
147147 Debug . Log ( "RCS module unable to find any transforms in part named " + thrusterTransformName ) ;
148148 }
149-
149+
150150 }
151151 else
152152 base . OnStart ( state ) ;
@@ -162,7 +162,7 @@ public override void OnStart(StartState state)
162162 if ( useThrottle )
163163 {
164164 inputLinear . y -= vessel . ctrlState . mainThrottle ;
165- inputLinear . y = Mathf . Clamp ( inputLinear . y , - 1f , 1f ) ;
165+ inputLinear . y = Mathf . Clamp ( inputLinear . y , - 1f , 1f ) ;
166166 }
167167
168168 // Epsilon checks (min values)
@@ -202,8 +202,8 @@ public override void OnStart(StartState state)
202202 int fxC = thrusterFX . Count ;
203203 if ( TimeWarp . CurrentRate > 1.0f && TimeWarp . WarpMode == TimeWarp . Modes . HIGH )
204204 {
205-
206- for ( int i = 0 ; i < fxC ; ++ i )
205+
206+ for ( int i = 0 ; i < fxC ; ++ i )
207207 {
208208 FXGroup fx = thrusterFX [ i ] ;
209209 fx . setActive ( false ) ;
@@ -228,7 +228,7 @@ public override void OnStart(StartState state)
228228 {
229229 rcs_active = vessel . ActionGroups [ KSPActionGroup . RCS ] ;
230230 }
231- if ( vessel . ActionGroups [ KSPActionGroup . RCS ] && ( inputAngular != Vector3 . zero || inputLinear != Vector3 . zero ) )
231+ if ( vessel . ActionGroups [ KSPActionGroup . RCS ] && ( inputAngular != Vector3 . zero || inputLinear != Vector3 . zero ) )
232232 {
233233
234234 // rb_velocity should include timewarp, right?
@@ -279,7 +279,7 @@ public override void OnStart(StartState state)
279279
280280 UpdatePropellantStatus ( ) ;
281281 float thrustForce = CalculateThrust ( thrust , out success ) ;
282-
282+
283283 if ( success )
284284 {
285285 curThrust += thrustForce ;
@@ -332,18 +332,18 @@ private void UpdatePropellantStatus()
332332 if ( ( object ) propellants != null )
333333 {
334334 int pCount = propellants . Count ;
335- for ( int i = 0 ; i < pCount ; ++ i )
335+ for ( int i = 0 ; i < pCount ; ++ i )
336336 propellants [ i ] . UpdateConnectedResources ( part ) ;
337337 }
338338 }
339339
340340 new public float CalculateThrust ( float totalForce , out bool success )
341341 {
342342 double massFlow = flowMult * fuelFlow * ( double ) totalForce ;
343-
343+
344344 double propAvailable = 1.0d ;
345345
346- if ( ! CheatOptions . InfiniteRCS )
346+ if ( ! CheatOptions . InfiniteRCS )
347347 propAvailable = RequestPropellant ( massFlow * TimeWarp . fixedDeltaTime ) ;
348348
349349 totalForce = ( float ) ( massFlow * exhaustVel * propAvailable ) ;
@@ -353,4 +353,4 @@ private void UpdatePropellantStatus()
353353 }
354354
355355}
356-
356+
0 commit comments