Skip to content

Commit

Permalink
Remove superfluous public
Browse files Browse the repository at this point in the history
Fix overflow warning
  • Loading branch information
royfalk committed Jun 7, 2023
1 parent b75fde9 commit 32ea757
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion engine/src/cmd/energetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/cmd/movable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ void Movable::FireEngines(const Vector &Direction /*unit vector... might default
float FMass) {
Energetic *energetic = dynamic_cast<Energetic*>(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
Expand Down

0 comments on commit 32ea757

Please sign in to comment.