mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Draw hitboxes last in OpenGL
This commit is contained in:
parent
8c08eb1676
commit
8b931da6f3
1 changed files with 2 additions and 2 deletions
|
@ -4532,9 +4532,9 @@ static int CompareVisSprites(const void *p1, const void *p2)
|
|||
int linkdraw1;
|
||||
int linkdraw2;
|
||||
|
||||
// bbox doesn't need to be sorted
|
||||
// draw bbox after everything else
|
||||
if (spr1->bbox || spr2->bbox)
|
||||
return 0;
|
||||
return (spr1->bbox - spr2->bbox);
|
||||
|
||||
// check for precip first, because then sprX->mobj is actually a precipmobj_t and does not have flags2 or tracer
|
||||
linkdraw1 = !spr1->precip && (spr1->mobj->flags2 & MF2_LINKDRAW) && spr1->mobj->tracer;
|
||||
|
|
Loading…
Reference in a new issue