mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Line sweep polyobject sides
Gremlin III vanquished for Balloon Park elephants.
This commit is contained in:
parent
e14f510fc7
commit
44923c2b2a
3 changed files with 7 additions and 2 deletions
|
|
@ -164,6 +164,7 @@ demoghost *ghosts = NULL;
|
||||||
// - 0x000A (Ring Racers v2.0)
|
// - 0x000A (Ring Racers v2.0)
|
||||||
// - A bug was preventing control after ending a drift.
|
// - A bug was preventing control after ending a drift.
|
||||||
// Older behavior is kept around for staff ghost compat.
|
// Older behavior is kept around for staff ghost compat.
|
||||||
|
// - Also, polyobject bounce-back was fixed!
|
||||||
|
|
||||||
#define DEMOVERSION 0x000B
|
#define DEMOVERSION 0x000B
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2186,6 +2186,8 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y, TryMoveResult_t *re
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
P_ClearTestLines();
|
||||||
|
|
||||||
// The bounding box is extended by MAXRADIUS
|
// The bounding box is extended by MAXRADIUS
|
||||||
// because mobj_ts are grouped into mapblocks
|
// because mobj_ts are grouped into mapblocks
|
||||||
// based on their origin point, and can overlap
|
// based on their origin point, and can overlap
|
||||||
|
|
@ -2323,8 +2325,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y, TryMoveResult_t *re
|
||||||
|
|
||||||
validcount++;
|
validcount++;
|
||||||
|
|
||||||
P_ClearTestLines();
|
|
||||||
|
|
||||||
// check lines
|
// check lines
|
||||||
for (bx = xl; bx <= xh; bx++)
|
for (bx = xl; bx <= xh; bx++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -201,6 +201,10 @@ boolean P_BBoxInsidePolyobj(polyobj_t *po, fixed_t *bbox)
|
||||||
{
|
{
|
||||||
if (P_BoxOnLineSide(bbox, po->lines[i]) == 0)
|
if (P_BoxOnLineSide(bbox, po->lines[i]) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
if (g_tm.sweep && !G_CompatLevel(0x000A))
|
||||||
|
{
|
||||||
|
P_TestLine(po->lines[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue