mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
Remove R_DrawTranslatedTLColumn function
This commit is contained in:
parent
c621ba4821
commit
e4b1fbaf01
38
src/r_draw.c
38
src/r_draw.c
@ -671,44 +671,6 @@ void R_DrawTranslatedColumn (void)
|
||||
while (--count);
|
||||
}
|
||||
|
||||
// [JN] translated and translucent column
|
||||
|
||||
void R_DrawTranslatedTLColumn (void)
|
||||
{
|
||||
int count;
|
||||
byte *dest;
|
||||
fixed_t frac;
|
||||
fixed_t fracstep;
|
||||
|
||||
count = dc_yh - dc_yl;
|
||||
if (count < 0)
|
||||
return;
|
||||
|
||||
#ifdef RANGECHECK
|
||||
if ((unsigned)dc_x >= video.width
|
||||
|| dc_yl < 0
|
||||
|| dc_yh >= video.height)
|
||||
I_Error ( "R_DrawTranslatedTLColumn: %i to %i at %i",
|
||||
dc_yl, dc_yh, dc_x);
|
||||
#endif
|
||||
|
||||
dest = ylookup[dc_yl] + columnofs[dc_x];
|
||||
fracstep = dc_iscale;
|
||||
frac = dc_texturemid + (dc_yl-centery)*fracstep;
|
||||
|
||||
count++;
|
||||
|
||||
do
|
||||
{
|
||||
// [crispy] brightmaps
|
||||
byte src = dc_translation[dc_source[frac>>FRACBITS]];
|
||||
*dest = tranmap[(*dest<<8)+dc_colormap[dc_brightmap[src]][src]];
|
||||
dest += linesize;
|
||||
frac += fracstep;
|
||||
}
|
||||
while (--count);
|
||||
}
|
||||
|
||||
//
|
||||
// R_InitTranslationTables
|
||||
// Creates the translation tables to map
|
||||
|
@ -57,9 +57,6 @@ void R_DrawSkyColumn(void);
|
||||
|
||||
void R_DrawTranslatedColumn(void);
|
||||
|
||||
// [JN] translated and translucent column
|
||||
void R_DrawTranslatedTLColumn(void);
|
||||
|
||||
extern lighttable_t *ds_colormap[2];
|
||||
|
||||
extern int ds_y;
|
||||
|
@ -428,15 +428,7 @@ void R_DrawVisSprite(vissprite_t *vis, int x1, int x2)
|
||||
else
|
||||
if (vis->mobjflags & MF_TRANSLATION)
|
||||
{
|
||||
// [JN] translated and translucent column
|
||||
if (vis->mobjflags & MF_TRANSLUCENT)
|
||||
{
|
||||
colfunc = R_DrawTranslatedTLColumn;
|
||||
}
|
||||
else
|
||||
{
|
||||
colfunc = R_DrawTranslatedColumn;
|
||||
}
|
||||
dc_translation = translationtables - 256 +
|
||||
((vis->mobjflags & MF_TRANSLATION) >> (MF_TRANSSHIFT-8) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user