Update player.cpp

This commit is contained in:
Sir-Skurpsalot 2026-06-24 17:46:58 -06:00 committed by GitHub
parent 405f458e17
commit fa6e293561
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();