|
|
@ -180,7 +180,6 @@ texture_t *R_TextureAnimation( msurface_t *s ) |
|
|
|
return base; |
|
|
|
return base; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static char r_transtexture; |
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
=============== |
|
|
|
=============== |
|
|
|
R_DrawSurface |
|
|
|
R_DrawSurface |
|
|
@ -200,7 +199,6 @@ void R_DrawSurface (void) |
|
|
|
surfrowbytes = r_drawsurf.rowbytes; |
|
|
|
surfrowbytes = r_drawsurf.rowbytes; |
|
|
|
|
|
|
|
|
|
|
|
mt = r_drawsurf.image; |
|
|
|
mt = r_drawsurf.image; |
|
|
|
r_transtexture = mt->transparent; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
r_source = mt->pixels[r_drawsurf.surfmip]; |
|
|
|
r_source = mt->pixels[r_drawsurf.surfmip]; |
|
|
|
|
|
|
|
|
|
|
@ -277,7 +275,6 @@ void R_DrawSurfaceBlock8_mip0 (void) |
|
|
|
|
|
|
|
|
|
|
|
psource = pbasesource; |
|
|
|
psource = pbasesource; |
|
|
|
prowdest = prowdestbase; |
|
|
|
prowdest = prowdestbase; |
|
|
|
char transtexture = r_transtexture; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (v=0 ; v<r_numvblocks ; v++) |
|
|
|
for (v=0 ; v<r_numvblocks ; v++) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -299,8 +296,6 @@ void R_DrawSurfaceBlock8_mip0 (void) |
|
|
|
for (b=15; b>=0; b--) |
|
|
|
for (b=15; b>=0; b--) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pix = psource[b]; |
|
|
|
pix = psource[b]; |
|
|
|
if( transtexture ) |
|
|
|
|
|
|
|
pix = pix << 3; |
|
|
|
|
|
|
|
prowdest[b] = pix; |
|
|
|
prowdest[b] = pix; |
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
@ -328,7 +323,6 @@ void R_DrawSurfaceBlock8_mip1 (void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
char transtexture = r_transtexture; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
psource = pbasesource; |
|
|
|
psource = pbasesource; |
|
|
|
prowdest = prowdestbase; |
|
|
|
prowdest = prowdestbase; |
|
|
@ -353,8 +347,6 @@ void R_DrawSurfaceBlock8_mip1 (void) |
|
|
|
for (b=7; b>=0; b--) |
|
|
|
for (b=7; b>=0; b--) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pix = psource[b]; |
|
|
|
pix = psource[b]; |
|
|
|
if( transtexture ) |
|
|
|
|
|
|
|
pix = pix << 3; |
|
|
|
|
|
|
|
prowdest[b] = pix; |
|
|
|
prowdest[b] = pix; |
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
@ -382,7 +374,6 @@ void R_DrawSurfaceBlock8_mip2 (void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
char transtexture = r_transtexture; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
psource = pbasesource; |
|
|
|
psource = pbasesource; |
|
|
|
prowdest = prowdestbase; |
|
|
|
prowdest = prowdestbase; |
|
|
@ -407,8 +398,6 @@ void R_DrawSurfaceBlock8_mip2 (void) |
|
|
|
for (b=3; b>=0; b--) |
|
|
|
for (b=3; b>=0; b--) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pix = psource[b]; |
|
|
|
pix = psource[b]; |
|
|
|
if( transtexture ) |
|
|
|
|
|
|
|
pix = pix << 3; |
|
|
|
|
|
|
|
prowdest[b] = pix; |
|
|
|
prowdest[b] = pix; |
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
@ -436,7 +425,6 @@ void R_DrawSurfaceBlock8_mip3 (void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
int v, i, b, lightstep, lighttemp, light; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
pixel_t pix, *psource, *prowdest; |
|
|
|
char transtexture = r_transtexture; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
psource = pbasesource; |
|
|
|
psource = pbasesource; |
|
|
|
prowdest = prowdestbase; |
|
|
|
prowdest = prowdestbase; |
|
|
@ -461,8 +449,6 @@ void R_DrawSurfaceBlock8_mip3 (void) |
|
|
|
for (b=1; b>=0; b--) |
|
|
|
for (b=1; b>=0; b--) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pix = psource[b]; |
|
|
|
pix = psource[b]; |
|
|
|
if( transtexture ) |
|
|
|
|
|
|
|
pix = pix << 3; |
|
|
|
|
|
|
|
prowdest[b] = pix; |
|
|
|
prowdest[b] = pix; |
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//((unsigned char *)vid.colormap)
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
|
//[(light & 0xFF00) + pix];
|
|
|
|