Fixed air acceleration going wild.

This commit is contained in:
Daniel Buckmaster 2013-07-03 19:07:35 +10:00
parent 95ef5ec226
commit 284d96e510

View file

@ -2870,7 +2870,7 @@ void Player::updateMove(const Move* move)
if (pvl)
pv *= moveSpeed / pvl;
VectorF runAcc = pv - acc;
VectorF runAcc = pv - (mVelocity + acc);
runAcc.z = 0;
runAcc.x = runAcc.x * mDataBlock->airControl;
runAcc.y = runAcc.y * mDataBlock->airControl;