@@ -395,27 +395,27 @@ namespace RTE {
395
395
396
396
// / Gets the starting strength of this MovableObject's effect as a float.
397
397
// / @return The starting strength of the effect, 0.0-1.0.
398
- float GetEffectStartStrengthFloat () const { return ( float ) m_EffectStartStrength / 255 .0f ; }
398
+ float GetEffectStartStrengthFloat () const { return static_cast < float >( m_EffectStartStrength) / 255 .0f ; }
399
399
400
400
// / Sets the starting strength of this MovableObject's effect.
401
401
// / @param strength The new starting strength of the effect, 0.0-1.0.
402
- void SetEffectStartStrengthFloat (float strength) { m_EffectStartStrength = std::floor (( float ) 255 * strength); }
402
+ void SetEffectStartStrengthFloat (float strength) { m_EffectStartStrength = std::floor (255 . 0F * strength); }
403
403
404
404
// / Gets the stopping strength of this MovableObject's effect.
405
405
// / @return The stopping strength of the effect, 0-255.
406
406
int GetEffectStopStrength () const { return m_EffectStopStrength; }
407
407
408
408
// / Gets the stopping strength of this MovableObject's effect as a float.
409
409
// / @return The stopping strength of the effect, 0.0-1.0.
410
- float GetEffectStopStrengthFloat () const { return ( float ) m_EffectStopStrength / 255 .0f ; }
410
+ float GetEffectStopStrengthFloat () const { return static_cast < float >( m_EffectStopStrength) / 255 .0f ; }
411
411
412
412
// / Sets the stopping strength of this MovableObject's effect.
413
413
// / @param strength The new stopping strength of the effect, 0.0-1.0.
414
- void SetEffectStopStrengthFloat (float strength) { m_EffectStopStrength = std::floor (( float ) 255 * strength); }
414
+ void SetEffectStopStrengthFloat (float strength) { m_EffectStopStrength = std::floor (255 . 0F * strength); }
415
415
416
416
// / Sets both strengths of this MovableObject's effect.
417
417
// / @param strength The new strengths of the effect, 0.0-1.0.
418
- void SetEffectStrength (float strength) { m_EffectStartStrength = m_EffectStopStrength = std::floor (( float ) 255 * strength); }
418
+ void SetEffectStrength (float strength) { m_EffectStartStrength = m_EffectStopStrength = std::floor (255 . 0F * strength); }
419
419
420
420
// / Gets whether or not this MovableObject's effect is drawn every frame.
421
421
// / @return Boolean indicating whether or not the effect is drawn.
0 commit comments