/* warp light generation */ #include #include #include #include #include #include #include #include #include #include typedef unsigned char byte; unsigned NUMLIGHTS; byte palette[768]; byte far lightpalette[254][256]; /* = RF_BuildLights = 0 is full palette = NUMLIGHTS and NUMLIGHTS+1 are all black */ void RF_BuildLights (void) { int i,l,c,test,table; int red,green,blue; int dist,bestdist,rdist,gdist,bdist,bestcolor; byte *palptr, *palsrc; byte far *screen; screen = MK_FP(0xa000,0); for (l=0;l