mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-13 06:13:18 +00:00
Use tracer's color for uncolored objects flagged with MF2_LINKDRAW
This commit is contained in:
parent
7ea73bf817
commit
2e7141b54a
2 changed files with 8 additions and 2 deletions
|
@ -5332,6 +5332,9 @@ static void HWR_ProjectSprite(mobj_t *thing)
|
||||||
vis->gpatch = (patch_t *)W_CachePatchNum(sprframe->lumppat[rot], PU_SPRITE);
|
vis->gpatch = (patch_t *)W_CachePatchNum(sprframe->lumppat[rot], PU_SPRITE);
|
||||||
|
|
||||||
vis->mobj = thing;
|
vis->mobj = thing;
|
||||||
|
if ((thing->flags2 & MF2_LINKDRAW) && thing->tracer && thing->color == SKINCOLOR_NONE)
|
||||||
|
vis->color = thing->tracer->color;
|
||||||
|
else
|
||||||
vis->color = thing->color;
|
vis->color = thing->color;
|
||||||
|
|
||||||
//Hurdler: 25/04/2000: now support colormap in hardware mode
|
//Hurdler: 25/04/2000: now support colormap in hardware mode
|
||||||
|
|
|
@ -1962,6 +1962,9 @@ static void R_ProjectSprite(mobj_t *thing)
|
||||||
vis->shear.offset = 0;
|
vis->shear.offset = 0;
|
||||||
|
|
||||||
vis->mobj = thing; // Easy access! Tails 06-07-2002
|
vis->mobj = thing; // Easy access! Tails 06-07-2002
|
||||||
|
if ((oldthing->flags2 & MF2_LINKDRAW) && oldthing->tracer && oldthing->color == SKINCOLOR_NONE)
|
||||||
|
vis->color = oldthing->tracer->color;
|
||||||
|
else
|
||||||
vis->color = oldthing->color;
|
vis->color = oldthing->color;
|
||||||
|
|
||||||
vis->x1 = x1 < portalclipstart ? portalclipstart : x1;
|
vis->x1 = x1 < portalclipstart ? portalclipstart : x1;
|
||||||
|
|
Loading…
Reference in a new issue