Remove R_DrawTranslatedTLColumn function

This commit is contained in:
Julia Nechaevskaya 2023-12-18 16:41:41 +03:00
parent c621ba4821
commit e4b1fbaf01
3 changed files with 0 additions and 49 deletions

View File

@ -671,44 +671,6 @@ void R_DrawTranslatedColumn (void)
while (--count); 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 // R_InitTranslationTables
// Creates the translation tables to map // Creates the translation tables to map

View File

@ -57,9 +57,6 @@ void R_DrawSkyColumn(void);
void R_DrawTranslatedColumn(void); void R_DrawTranslatedColumn(void);
// [JN] translated and translucent column
void R_DrawTranslatedTLColumn(void);
extern lighttable_t *ds_colormap[2]; extern lighttable_t *ds_colormap[2];
extern int ds_y; extern int ds_y;

View File

@ -428,15 +428,7 @@ void R_DrawVisSprite(vissprite_t *vis, int x1, int x2)
else else
if (vis->mobjflags & MF_TRANSLATION) if (vis->mobjflags & MF_TRANSLATION)
{ {
// [JN] translated and translucent column
if (vis->mobjflags & MF_TRANSLUCENT)
{
colfunc = R_DrawTranslatedTLColumn;
}
else
{
colfunc = R_DrawTranslatedColumn; colfunc = R_DrawTranslatedColumn;
}
dc_translation = translationtables - 256 + dc_translation = translationtables - 256 +
((vis->mobjflags & MF_TRANSLATION) >> (MF_TRANSSHIFT-8) ); ((vis->mobjflags & MF_TRANSLATION) >> (MF_TRANSSHIFT-8) );
} }