Duplicated constant removal.
This commit is contained in:
parent
1e6b213d6c
commit
52dd1c62c2
|
@ -1590,7 +1590,6 @@ void P_CheckGravity(mobj_t *mo, boolean affect)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define STOPSPEED (FRACUNIT)
|
#define STOPSPEED (FRACUNIT)
|
||||||
#define FRICTION (ORIG_FRICTION) // 0.90625
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// P_SceneryXYFriction
|
// P_SceneryXYFriction
|
||||||
|
@ -1647,7 +1646,7 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
|
||||||
// spinning friction
|
// spinning friction
|
||||||
if (player->pflags & PF_SPINNING && (player->rmomx || player->rmomy) && !(player->pflags & PF_STARTDASH))
|
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->momx = FixedMul(mo->momx, ns);
|
||||||
mo->momy = FixedMul(mo->momy, ns);
|
mo->momy = FixedMul(mo->momy, ns);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue