mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Use 3D midtexture restrictions when respawning actors.
SVN r3550 (trunk)
This commit is contained in:
parent
12e23a56f8
commit
2b52d686e9
2 changed files with 2 additions and 2 deletions
|
@ -385,7 +385,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RestoreSpecialPosition)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Redo floor/ceiling check, in case of 3D floors
|
// Redo floor/ceiling check, in case of 3D floors
|
||||||
P_FindFloorCeiling(self, FFCF_SAMESECTOR | FFCF_ONLY3DFLOORS);
|
P_FindFloorCeiling(self, FFCF_SAMESECTOR | FFCF_ONLY3DFLOORS | FFCF_3DMIDTEXRESTRICT);
|
||||||
if (self->z < self->floorz)
|
if (self->z < self->floorz)
|
||||||
{ // Do not reappear under the floor, even if that's where we were for the
|
{ // Do not reappear under the floor, even if that's where we were for the
|
||||||
// initial spawn.
|
// initial spawn.
|
||||||
|
|
|
@ -2487,7 +2487,7 @@ void P_NightmareRespawn (AActor *mobj)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are 3D floors, we need to find floor/ceiling again.
|
// If there are 3D floors, we need to find floor/ceiling again.
|
||||||
P_FindFloorCeiling(mo, FFCF_SAMESECTOR | FFCF_ONLY3DFLOORS);
|
P_FindFloorCeiling(mo, FFCF_SAMESECTOR | FFCF_ONLY3DFLOORS | FFCF_3DMIDTEXRESTRICT);
|
||||||
|
|
||||||
if (z == ONFLOORZ)
|
if (z == ONFLOORZ)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue