mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Do not factor height into sprite thickseg sorting
This commit is contained in:
parent
648f1f0958
commit
131d592bbf
1 changed files with 7 additions and 1 deletions
|
|
@ -2448,7 +2448,7 @@ static void R_CreateDrawNodes(maskcount_t* mask, drawnode_t* head, boolean temps
|
||||||
}
|
}
|
||||||
else if (r2->thickseg)
|
else if (r2->thickseg)
|
||||||
{
|
{
|
||||||
fixed_t topplaneobjectz, topplanecameraz, botplaneobjectz, botplanecameraz;
|
//fixed_t topplaneobjectz, topplanecameraz, botplaneobjectz, botplanecameraz;
|
||||||
if (rover->x1 > r2->thickseg->x2 || rover->x2 < r2->thickseg->x1)
|
if (rover->x1 > r2->thickseg->x2 || rover->x2 < r2->thickseg->x1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
@ -2459,6 +2459,11 @@ static void R_CreateDrawNodes(maskcount_t* mask, drawnode_t* head, boolean temps
|
||||||
if (scale <= rover->sortscale)
|
if (scale <= rover->sortscale)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// bird: Always sort sprites behind segs. This helps the plane
|
||||||
|
// sorting above too. Basically if the sprite gets sorted behind
|
||||||
|
// the seg here, it will be behind the plane too, since planes
|
||||||
|
// are added after segs in the list.
|
||||||
|
#if 0
|
||||||
topplaneobjectz = P_GetFFloorTopZAt (r2->ffloor, rover->gx, rover->gy);
|
topplaneobjectz = P_GetFFloorTopZAt (r2->ffloor, rover->gx, rover->gy);
|
||||||
topplanecameraz = P_GetFFloorTopZAt (r2->ffloor, viewx, viewy);
|
topplanecameraz = P_GetFFloorTopZAt (r2->ffloor, viewx, viewy);
|
||||||
botplaneobjectz = P_GetFFloorBottomZAt(r2->ffloor, rover->gx, rover->gy);
|
botplaneobjectz = P_GetFFloorBottomZAt(r2->ffloor, rover->gx, rover->gy);
|
||||||
|
|
@ -2467,6 +2472,7 @@ static void R_CreateDrawNodes(maskcount_t* mask, drawnode_t* head, boolean temps
|
||||||
if ((topplanecameraz > viewz && botplanecameraz < viewz) ||
|
if ((topplanecameraz > viewz && botplanecameraz < viewz) ||
|
||||||
(topplanecameraz < viewz && rover->gzt < topplaneobjectz) ||
|
(topplanecameraz < viewz && rover->gzt < topplaneobjectz) ||
|
||||||
(botplanecameraz > viewz && rover->gz > botplaneobjectz))
|
(botplanecameraz > viewz && rover->gz > botplaneobjectz))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
entry = R_CreateDrawNode(NULL);
|
entry = R_CreateDrawNode(NULL);
|
||||||
(entry->prev = r2->prev)->next = entry;
|
(entry->prev = r2->prev)->next = entry;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue