Move player friction reset after movement code for lua qol

This commit is contained in:
katsy 2024-01-01 03:10:09 +00:00 committed by Logan Aerl Arias
parent 106a98ce5c
commit b52836e5f1
2 changed files with 2 additions and 2 deletions

View file

@ -1676,8 +1676,6 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
mo->momx = FixedMul(mo->momx, mo->friction);
mo->momy = FixedMul(mo->momy, mo->friction);
}
mo->friction = ORIG_FRICTION;
}
}
else

View file

@ -6000,6 +6000,7 @@ static void P_2dMovement(player_t *player)
else if (player->rmomx > -topspeed && cmd->sidemove < 0)
P_Thrust(player->mo, movepushangle, movepushforward);
}
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
}
//#define OLD_MOVEMENT_CODE 1
@ -6321,6 +6322,7 @@ static void P_3dMovement(player_t *player)
player->mo->momy = tempmomy + player->cmomy;
}
}
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
}
//