From e4127111b1df229f6730b50079e7a67089e7ef4b Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 21 Mar 2013 03:47:39 +0000 Subject: [PATCH] - A player's Speed is now applied to their upmove as well as their forwardmove and sidemove. SVN r4195 (trunk) --- src/p_user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_user.cpp b/src/p_user.cpp index a3e848fe1..132fa4996 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -2103,7 +2103,7 @@ void P_PlayerThink (player_t *player) player->ReadyWeapon != NULL && // No adjustment if no weapon. player->ReadyWeapon->FOVScale != 0) // No adjustment if the adjustment is zero. { - // A negative scale is used top prevent G_AddViewAngle/G_AddViewPitch + // A negative scale is used to prevent G_AddViewAngle/G_AddViewPitch // from scaling with the FOV scale. desired *= fabs(player->ReadyWeapon->FOVScale); } @@ -2373,7 +2373,7 @@ void P_PlayerThink (player_t *player) } if (player->mo->waterlevel >= 2 || (player->mo->flags2 & MF2_FLY) || (player->cheats & CF_NOCLIP2)) { - player->mo->velz = cmd->ucmd.upmove << 9; + player->mo->velz = FixedMul(player->mo->Speed, cmd->ucmd.upmove << 9); if (player->mo->waterlevel < 2 && !(player->mo->flags & MF_NOGRAVITY)) { player->mo->flags2 |= MF2_FLY;