Skip to content

Commit

Permalink
Fix minimum velocity when turning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtsley committed Aug 15, 2024
1 parent 81855bd commit e419e59
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 e419e59

Please sign in to comment.