mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Update player.cpp
This commit is contained in:
parent
405f458e17
commit
fa6e293561
1 changed files with 2 additions and 2 deletions
|
|
@ -512,7 +512,7 @@ bool PlayerData::preload(bool server, String &errorStr)
|
||||||
if (jetMinJumpEnergy < jetJumpEnergyDrain)
|
if (jetMinJumpEnergy < jetJumpEnergyDrain)
|
||||||
jetMinJumpEnergy = jetJumpEnergyDrain;
|
jetMinJumpEnergy = jetJumpEnergyDrain;
|
||||||
|
|
||||||
// Validate some of the data -Obsolete??? -Skurps
|
// Validate some of the data
|
||||||
if (fallingSpeedThreshold > 0.0f)
|
if (fallingSpeedThreshold > 0.0f)
|
||||||
Con::printf("PlayerData:: Falling speed threshold should be downwards (negative)");
|
Con::printf("PlayerData:: Falling speed threshold should be downwards (negative)");
|
||||||
|
|
||||||
|
|
@ -3057,7 +3057,7 @@ void Player::updateMove(const Move* move)
|
||||||
|| mActionAnimation.action == PlayerData::LandAnim))
|
|| mActionAnimation.action == PlayerData::LandAnim))
|
||||||
mActionAnimation.action = PlayerData::NullAnimation;
|
mActionAnimation.action = PlayerData::NullAnimation;
|
||||||
}
|
}
|
||||||
else if (mState == ProneRecoverState){ // Use the speedfrom the animation during ProneRecoverState -Skurps
|
else if (mState == ProneRecoverState){ // Use the velocity from the animation during ProneRecoverState -Skurps
|
||||||
moveSpeed = mAnimVelocity.len();
|
moveSpeed = mAnimVelocity.len();
|
||||||
moveVec = mAnimVelocity;
|
moveVec = mAnimVelocity;
|
||||||
moveVec.normalize();
|
moveVec.normalize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue