Fix hitting springs crash

MFE_SPRUNG flag not being applied to the object sprung would cause a infinite recursion of `P_TryMove` -> `P_CheckPosition` -> `PIT_CheckThing` -> `P_DoSpring` -> etc
Also fix springs not being de-solidfied

Dunno what's up with the spring sound not playing
This commit is contained in:
SteelT 2020-09-21 15:01:56 -04:00
parent df4d57aab4
commit 6912915304

View file

@ -271,6 +271,9 @@ boolean P_DoSpring(mobj_t *spring, mobj_t *object)
object->standingslope = NULL; // Okay, now we know it's not going to be relevant - no launching off at silly angles for you.
object->eflags |= MFE_SPRUNG; // apply this flag asap!
spring->flags &= ~(MF_SOLID|MF_SPECIAL); // De-solidify
if (spring->eflags & MFE_VERTICALFLIP)
vertispeed *= -1;