R_DrawSplatSprite -> R_DrawFloorSprite
This commit is contained in:
parent
0f9d85694d
commit
805818d48e
|
@ -137,7 +137,7 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void R_DrawSplatSprite(vissprite_t *spr)
|
void R_DrawFloorSprite(vissprite_t *spr)
|
||||||
{
|
{
|
||||||
floorsplat_t splat;
|
floorsplat_t splat;
|
||||||
mobj_t *mobj = spr->mobj;
|
mobj_t *mobj = spr->mobj;
|
||||||
|
|
|
@ -42,7 +42,7 @@ typedef struct floorsplat_s
|
||||||
mobj_t *mobj; // Mobj it is tied to
|
mobj_t *mobj; // Mobj it is tied to
|
||||||
} floorsplat_t;
|
} floorsplat_t;
|
||||||
|
|
||||||
void R_DrawSplatSprite(vissprite_t *spr);
|
void R_DrawFloorSprite(vissprite_t *spr);
|
||||||
void R_RenderFloorSplat(floorsplat_t *pSplat, vector2_t *verts, vissprite_t *vis);
|
void R_RenderFloorSplat(floorsplat_t *pSplat, vector2_t *verts, vissprite_t *vis);
|
||||||
|
|
||||||
#endif /*__R_SPLATS_H__*/
|
#endif /*__R_SPLATS_H__*/
|
||||||
|
|
|
@ -2787,7 +2787,7 @@ static void R_DrawSprite(vissprite_t *spr)
|
||||||
mceilingclip = spr->cliptop;
|
mceilingclip = spr->cliptop;
|
||||||
|
|
||||||
if (spr->cut & SC_SPLAT)
|
if (spr->cut & SC_SPLAT)
|
||||||
R_DrawSplatSprite(spr);
|
R_DrawFloorSprite(spr);
|
||||||
else
|
else
|
||||||
R_DrawVisSprite(spr);
|
R_DrawVisSprite(spr);
|
||||||
}
|
}
|
||||||
|
@ -3075,12 +3075,12 @@ boolean R_ThingIsFloorSprite(mobj_t *thing)
|
||||||
return (thing->flags2 & MF2_SPLAT || thing->renderflags & RF_FLOORSPRITE);
|
return (thing->flags2 & MF2_SPLAT || thing->renderflags & RF_FLOORSPRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean R_ThingIsFullBright (mobj_t *thing)
|
boolean R_ThingIsFullBright(mobj_t *thing)
|
||||||
{
|
{
|
||||||
return (thing->frame & FF_FULLBRIGHT || thing->renderflags & RF_FULLBRIGHT);
|
return (thing->frame & FF_FULLBRIGHT || thing->renderflags & RF_FULLBRIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean R_ThingIsFullDark (mobj_t *thing)
|
boolean R_ThingIsFullDark(mobj_t *thing)
|
||||||
{
|
{
|
||||||
return (thing->renderflags & RF_FULLDARK);
|
return (thing->renderflags & RF_FULLDARK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue