mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-22 03:41:45 +00:00
Update hw_light.c
Fixes rendering lights with cv_drawdist by adding *FRACUNIT
This commit is contained in:
parent
7af57684f0
commit
7b858501c4
1 changed files with 1 additions and 1 deletions
|
@ -1258,7 +1258,7 @@ static void HWR_ComputeLightMapsInBSPNode(int bspnum, fixed_t *bbox)
|
|||
// --------------------------------------------------------------------------
|
||||
static void HWR_AddMobjLights(mobj_t *thing)
|
||||
{
|
||||
if (!cv_drawdist.value || P_AproxDistance(thing->x-viewx, thing->y-viewy) < cv_drawdist.value)
|
||||
if (!cv_drawdist.value || P_AproxDistance(thing->x-viewx, thing->y-viewy) < cv_drawdist.value*FRACUNIT)
|
||||
if (!(thing->flags2 & MF2_DEBRIS) && (thing->sprite != SPR_PLAY ||
|
||||
(thing->player && thing->player->powers[pw_super])))
|
||||
if ((t_lspr[thing->sprite]->type&DYNLIGHT_SPR)
|
||||
|
|
Loading…
Reference in a new issue