diff --git a/engine/src/cmd/energetic.h b/engine/src/cmd/energetic.h index 7f3870c0fd..4d0d1ad3bb 100644 --- a/engine/src/cmd/energetic.h +++ b/engine/src/cmd/energetic.h @@ -100,7 +100,6 @@ class Energetic { float warpenergy; //short fix float constrained_charge_to_shields; bool sufficient_energy_to_recharge_shields; -public: //fuel of this unit float fuel; diff --git a/engine/src/cmd/movable.cpp b/engine/src/cmd/movable.cpp index 7682b96a82..5c1dce7cb8 100644 --- a/engine/src/cmd/movable.cpp +++ b/engine/src/cmd/movable.cpp @@ -476,7 +476,7 @@ void Movable::FireEngines(const Vector &Direction /*unit vector... might default float FMass) { Energetic *energetic = dynamic_cast(this); FMass = energetic->ExpendFuel(FMass); - NetForce += Direction * (FuelSpeed * FMass / GetElapsedTime()); + NetForce += Direction * ((double)FuelSpeed * (double)FMass / GetElapsedTime()); } //applies a force for the whole gameturn upon the center of mass