mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Duplicated constant removal.
This commit is contained in:
parent
1e6b213d6c
commit
52dd1c62c2
1 changed files with 1 additions and 2 deletions
|
@ -1590,7 +1590,6 @@ void P_CheckGravity(mobj_t *mo, boolean affect)
|
|||
}
|
||||
|
||||
#define STOPSPEED (FRACUNIT)
|
||||
#define FRICTION (ORIG_FRICTION) // 0.90625
|
||||
|
||||
//
|
||||
// P_SceneryXYFriction
|
||||
|
@ -1647,7 +1646,7 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
|
|||
// spinning friction
|
||||
if (player->pflags & PF_SPINNING && (player->rmomx || player->rmomy) && !(player->pflags & PF_STARTDASH))
|
||||
{
|
||||
const fixed_t ns = FixedDiv(549*FRICTION,500*FRACUNIT);
|
||||
const fixed_t ns = FixedDiv(549*ORIG_FRICTION,500*FRACUNIT);
|
||||
mo->momx = FixedMul(mo->momx, ns);
|
||||
mo->momy = FixedMul(mo->momy, ns);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue