removed unreliable gr_fade_table check in c_tmap_scanline_per()

This commit is contained in:
zicodxx 2007-02-19 23:44:21 +00:00
parent 7f51bf5ef5
commit 6113b7c296
2 changed files with 1 additions and 6 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20070220
--------
arch/sdl/key.c: Added ENTER as Game key
texmap/scanline.c: removed unreliable gr_fade_table check in c_tmap_scanline_per()
20070219
--------

View file

@ -1009,13 +1009,7 @@ void c_tmap_scanline_per()
for (x= fx_xright-fx_xleft+1 ; x > 0; --x ) {
c = (uint)pixptr[ ( (v/z)&(64*63) ) + ((u/z)&63) ];
if ( c!=TRANSPARENCY_COLOR)
{
if ((l&(0x7f00)) + c >= 34*256) //gr_fade_table is only 34*256 bytes
Int3();
//edited 05/18/99 Matt Mueller - changed from 0xff00 to 0x7f00 to fix glitches
*dest = gr_fade_table[ (l&(0x7f00)) + c ];
//end edit -MM
}
dest++;
l += dldx;
u += dudx;