mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Merge branch 'public-op-nightsbumper-fix' into 'next'
Objectplace: Fix NiGHTS bumper angle being reset when WRITETHINGS See merge request STJr/SRB2!299
This commit is contained in:
commit
b3befae143
1 changed files with 8 additions and 3 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -9197,9 +9197,6 @@ ML_NOCLIMB : Direction not controllable
|
||||||
// the bumper in 30 degree increments.
|
// the bumper in 30 degree increments.
|
||||||
mobj->threshold = (mthing->options & 15) % 12; // It loops over, etc
|
mobj->threshold = (mthing->options & 15) % 12; // It loops over, etc
|
||||||
P_SetMobjState(mobj, mobj->info->spawnstate+mobj->threshold);
|
P_SetMobjState(mobj, mobj->info->spawnstate+mobj->threshold);
|
||||||
|
|
||||||
// you can shut up now, OBJECTFLIP. And all of the other options, for that matter.
|
|
||||||
mthing->options &= ~0xF;
|
|
||||||
break;
|
break;
|
||||||
case MT_EGGCAPSULE:
|
case MT_EGGCAPSULE:
|
||||||
if (mthing->angle <= 0)
|
if (mthing->angle <= 0)
|
||||||
|
@ -9387,6 +9384,14 @@ ML_NOCLIMB : Direction not controllable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore MTF_ flags and return early
|
||||||
|
if (i == MT_NIGHTSBUMPER)
|
||||||
|
{
|
||||||
|
mobj->angle = FixedAngle(mthing->angle*FRACUNIT);
|
||||||
|
mthing->mobj = mobj;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mobj->angle = FixedAngle(mthing->angle*FRACUNIT);
|
mobj->angle = FixedAngle(mthing->angle*FRACUNIT);
|
||||||
|
|
||||||
if ((mthing->options & MTF_AMBUSH)
|
if ((mthing->options & MTF_AMBUSH)
|
||||||
|
|
Loading…
Reference in a new issue