- Only adjust the ceiling position of solid actors in A_RestoreSpecialPosition.

SVN r3549 (trunk)
This commit is contained in:
Randy Heit 2012-04-10 03:22:07 +00:00
parent da21075480
commit 12e23a56f8

View file

@ -391,7 +391,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RestoreSpecialPosition)
// initial spawn.
self->z = self->floorz;
}
if (self->z + self->height > self->ceilingz)
if ((self->flags & MF_SOLID) && (self->z + self->height > self->ceilingz))
{ // Do the same for the ceiling.
self->z = self->ceilingz - self->height;
}