Skip to content

Commit

Permalink
Fix some planes "vibrating" - trying to take off while being built
Browse files Browse the repository at this point in the history
  • Loading branch information
zerver committed Jul 29, 2010
1 parent 422bf7e commit 191281d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/MoveTypes/TAAirMoveType.cpp
Expand Up @@ -706,7 +706,7 @@ void CTAAirMoveType::UpdateAirPhysics()
if (fabs(wh - h) > 2.0f) {
if (speed.y > ws) {
speed.y = std::max(ws, speed.y - accRate * 1.5f);
} else {
} else if(!owner->beingBuilt) {
// let them accelerate upward faster if close to ground
speed.y = std::min(ws, speed.y + accRate * (h < 20.0f? 2.0f: 0.7f));
}
Expand Down

0 comments on commit 191281d

Please sign in to comment.