mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 22:22:55 +00:00
Remove an #ifdef here
This commit is contained in:
parent
b26c30156b
commit
5c73357dee
1 changed files with 7 additions and 7 deletions
|
|
@ -790,10 +790,6 @@ void P_SlopeLaunch(mobj_t *mo)
|
||||||
{
|
{
|
||||||
if (!(mo->standingslope->flags & SL_NOPHYSICS)) // If there's physics, time for launching.
|
if (!(mo->standingslope->flags & SL_NOPHYSICS)) // If there's physics, time for launching.
|
||||||
{
|
{
|
||||||
#ifdef GROWNEVERMISSES
|
|
||||||
const fixed_t xyscale = mapheaderinfo[gamemap-1]->mobj_scale + (mapheaderinfo[gamemap-1]->mobj_scale - mo->scale);
|
|
||||||
const fixed_t zscale = mapheaderinfo[gamemap-1]->mobj_scale + (mapheaderinfo[gamemap-1]->mobj_scale - mo->scale);
|
|
||||||
#endif
|
|
||||||
// Double the pre-rotation Z, then halve the post-rotation Z. This reduces the
|
// Double the pre-rotation Z, then halve the post-rotation Z. This reduces the
|
||||||
// vertical launch given from slopes while increasing the horizontal launch
|
// vertical launch given from slopes while increasing the horizontal launch
|
||||||
// given. Good for SRB2's gravity and horizontal speeds.
|
// given. Good for SRB2's gravity and horizontal speeds.
|
||||||
|
|
@ -804,9 +800,13 @@ void P_SlopeLaunch(mobj_t *mo)
|
||||||
P_QuantizeMomentumToSlope(&slopemom, mo->standingslope);
|
P_QuantizeMomentumToSlope(&slopemom, mo->standingslope);
|
||||||
|
|
||||||
#ifdef GROWNEVERMISSES
|
#ifdef GROWNEVERMISSES
|
||||||
mo->momx = FixedMul(slopemom.x, xyscale);
|
{
|
||||||
mo->momy = FixedMul(slopemom.y, xyscale);
|
const fixed_t xyscale = mapheaderinfo[gamemap-1]->mobj_scale + (mapheaderinfo[gamemap-1]->mobj_scale - mo->scale);
|
||||||
mo->momz = FixedMul(slopemom.z, zscale);
|
const fixed_t zscale = mapheaderinfo[gamemap-1]->mobj_scale + (mapheaderinfo[gamemap-1]->mobj_scale - mo->scale);
|
||||||
|
mo->momx = FixedMul(slopemom.x, xyscale);
|
||||||
|
mo->momy = FixedMul(slopemom.y, xyscale);
|
||||||
|
mo->momz = FixedMul(slopemom.z, zscale);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mo->momx = slopemom.x;
|
mo->momx = slopemom.x;
|
||||||
mo->momy = slopemom.y;
|
mo->momy = slopemom.y;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue