Skip to content

Commit

Permalink
Merge pull request OpenApoc#1492 from Kurtsley/fix-velocity
Browse files Browse the repository at this point in the history
Stopgap Fix for minimum velocity when turning
  • Loading branch information
FilmBoy84 authored Aug 15, 2024
2 parents 5f18f27 + e419e59 commit 875cabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/state/city/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class FlyingVehicleMover : public VehicleMover
std::max(floorf(glm::length(vectorToGoal) /
glm::length(vehicle.velocity) * (float)TICK_SCALE) -
5.0f,
1.0f);
2.0f);
if (ticksToMove < vehicle.ticksToTurn)
{
vehicle.velocity *= (float)ticksToMove / (float)vehicle.ticksToTurn;
Expand Down

0 comments on commit 875cabb

Please sign in to comment.