Merge branch 'thespikesagaepisode3' into 'next'

Exclude non-solid objects from spike eject (resolves #706)

Closes #706

See merge request STJr/SRB2!1674
This commit is contained in:
Sal 2023-07-24 09:17:07 +00:00
commit 50d8becf55

View file

@ -1166,7 +1166,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
}
// When solid spikes move, assume they just popped up and teleport things on top of them to hurt.
if (tmthing->type == MT_SPIKE && tmthing->flags & MF_SOLID)
if (tmthing->type == MT_SPIKE && (thing->flags & MF_SOLID) && (tmthing->flags & MF_SOLID))
{
if (thing->z > tmthing->z + tmthing->height)
return true; // overhead