Make use of PlayerData::swimForce

This commit is contained in:
Daniel Buckmaster 2014-07-01 18:14:08 +02:00
parent feec36731e
commit 3f687d8f43

View file

@ -2955,7 +2955,7 @@ void Player::updateMove(const Move* move)
// Clamp acceleration.
F32 maxAcc = (mDataBlock->swimForce / getMass()) * TickSec;
if ( false && swimSpeed > maxAcc )
if ( swimSpeed > maxAcc )
swimAcc *= maxAcc / swimSpeed;
acc += swimAcc;