mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed some issues with P_FindFloorCeiling rework.
This commit is contained in:
parent
28799c4b51
commit
cb0e7c6ca5
3 changed files with 10 additions and 0 deletions
|
@ -857,6 +857,8 @@ bool PIT_CheckLine(line_t *ld, const FBoundingBox &box, FCheckPosition &tm)
|
|||
fixedvec2 ref = FindRefPoint(ld, rpos);
|
||||
FLineOpening open;
|
||||
|
||||
P_LineOpening(open, tm.thing, ld, ref.x, ref.y, tm.x, tm.y, 0);
|
||||
|
||||
// the floorplane on both sides is identical with the current one
|
||||
// so don't mess around with the z-position.
|
||||
if (ld->frontsector->floorplane == ld->backsector->floorplane &&
|
||||
|
|
|
@ -918,6 +918,8 @@ void P_CreateLinkedPortals()
|
|||
}
|
||||
if (orgs.Size() == 0)
|
||||
{
|
||||
// Create the 0->0 translation which is always needed.
|
||||
Displacements.Create(1);
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < numsectors; i++)
|
||||
|
|
|
@ -41,6 +41,11 @@ struct FDisplacementTable
|
|||
TArray<FDisplacement> data;
|
||||
int size;
|
||||
|
||||
FDisplacementTable()
|
||||
{
|
||||
Create(1);
|
||||
}
|
||||
|
||||
void Create(int numgroups)
|
||||
{
|
||||
data.Resize(numgroups*numgroups);
|
||||
|
@ -50,6 +55,7 @@ struct FDisplacementTable
|
|||
|
||||
FDisplacement &operator()(int x, int y)
|
||||
{
|
||||
if (x == y) return data[0]; // shortcut for the most common case
|
||||
return data[x + size*y];
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue