mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
P_LineOpening: set int32 max/min as defaults for opentop, openbottom etc if a linedef you touched belongs to a polyobjetc. the only thing that really matters in this scenario is the polyobject itself after all!
(This is an untested fix for VAda's apparent collision with thin air below a polyobject in ACZ2 in beta 5)
This commit is contained in:
parent
ff5d1e7757
commit
7940edd1fc
1 changed files with 14 additions and 1 deletions
|
|
@ -519,7 +519,20 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
|
||||||
I_Assert(back != NULL);
|
I_Assert(back != NULL);
|
||||||
|
|
||||||
openfloorrover = openceilingrover = NULL;
|
openfloorrover = openceilingrover = NULL;
|
||||||
|
#ifdef POLYOBJECTS
|
||||||
|
if (linedef->polyobj)
|
||||||
|
{
|
||||||
|
// set these defaults so that polyobjects don't interfere with collision above or below them
|
||||||
|
opentop = INT32_MAX;
|
||||||
|
openbottom = INT32_MIN;
|
||||||
|
highceiling = INT32_MIN;
|
||||||
|
lowfloor = INT32_MAX;
|
||||||
|
#ifdef ESLOPE
|
||||||
|
opentopslope = openbottomslope = NULL;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
{ // Set open and high/low values here
|
{ // Set open and high/low values here
|
||||||
fixed_t frontheight, backheight;
|
fixed_t frontheight, backheight;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue