mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +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.
|
// initial spawn.
|
||||||
self->z = self->floorz;
|
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.
|
{ // Do the same for the ceiling.
|
||||||
self->z = self->ceilingz - self->height;
|
self->z = self->ceilingz - self->height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue