mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
- Only adjust the ceiling position of solid actors in A_RestoreSpecialPosition.
SVN r3549 (trunk)
This commit is contained in:
parent
da21075480
commit
12e23a56f8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue