From 5ca62cfd76593d4fc3de77575d72a66953d9a077 Mon Sep 17 00:00:00 2001 From: Yukita Mayako <catgirl@goddess.moe> Date: Fri, 11 Mar 2016 17:22:55 -0500 Subject: [PATCH] Only tick up acceleration at 35 FPS (Bad!) TODO: Adjust P_3dMovement to handle smoother movement at higher framerate! --- src/p_user.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 56ad842329..fc9d6d5a9f 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4335,6 +4335,9 @@ static void P_2dMovement(player_t *player) angle_t movepushangle = 0; fixed_t normalspd = FixedMul(player->normalspeed, player->mo->scale); + if ((gametic % NEWTICRATERATIO) != 0) + return; + cmd = &player->cmd; if (player->exiting || player->pflags & PF_STASIS) @@ -4521,6 +4524,9 @@ static void P_3dMovement(player_t *player) totalthrust.z = FRACUNIT*P_MobjFlip(player->mo)/3; // A bit of extra push-back on slopes #endif // ESLOPE + if ((gametic % NEWTICRATERATIO) != 0) + return; + // Get the old momentum; this will be needed at the end of the function! -SH oldMagnitude = R_PointToDist2(player->mo->momx - player->cmomx, player->mo->momy - player->cmomy, 0, 0); -- GitLab