mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
d8ab0b40dc
1 changed files with 11 additions and 0 deletions
|
@ -514,6 +514,17 @@ void P_Recalculate3DFloors(sector_t * sector)
|
||||||
clipped_bottom = pick_bottom;
|
clipped_bottom = pick_bottom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (pick_bottom > height) // do not allow inverted planes
|
||||||
|
{
|
||||||
|
F3DFloor * dyn = new F3DFloor;
|
||||||
|
*dyn = *pick;
|
||||||
|
pick->flags |= FF_CLIPPED;
|
||||||
|
pick->flags &= ~FF_EXISTS;
|
||||||
|
dyn->flags |= FF_DYNAMIC;
|
||||||
|
dyn->bottom.copyPlane(&pick->top);
|
||||||
|
ffloors.Push(pick);
|
||||||
|
ffloors.Push(dyn);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
clipped = pick;
|
clipped = pick;
|
||||||
|
|
Loading…
Reference in a new issue