mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 18:21:10 +00:00
Merge branch 'op-nightsbumper' into 'master'
NiGHTS Objectplace: Preserve MT_NIGHTSBUMPER vertical angle upon WRITETHINGS See merge request STJr/SRB2Internal!137
This commit is contained in:
commit
e1cd6357cc
1 changed files with 8 additions and 3 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -10060,9 +10060,6 @@ domaceagain:
|
|||
// the bumper in 30 degree increments.
|
||||
mobj->threshold = (mthing->options & 15) % 12; // It loops over, etc
|
||||
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;
|
||||
case MT_EGGCAPSULE:
|
||||
if (mthing->angle <= 0)
|
||||
|
@ -10264,6 +10261,14 @@ domaceagain:
|
|||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
if ((mthing->options & MTF_AMBUSH)
|
||||
|
|
Loading…
Reference in a new issue