mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-25 23:11:20 +00:00
MF_DRAWFROMFARAWAY: draw sprites from infinitely far away
This commit is contained in:
parent
b195d43577
commit
4ebbabc6f5
1 changed files with 3 additions and 13 deletions
|
|
@ -3659,20 +3659,10 @@ boolean R_ThingWithinDist (mobj_t *thing, fixed_t limit_dist)
|
|||
|
||||
if (limit_dist)
|
||||
{
|
||||
if (thing->flags & MF_DRAWFROMFARAWAY)
|
||||
// MF_DRAWFROMFARAWAY: visible from any distance
|
||||
if (!(thing->flags & MF_DRAWFROMFARAWAY) && dist > limit_dist)
|
||||
{
|
||||
// MF_DRAWFROMFARAWAY: visible from 2x drawdist
|
||||
if (dist > limit_dist * 2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dist > limit_dist)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue