X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_tdef.h;h=88ab4cdeb4c10985d37c5af1609bcffc9799e211;hb=dc02e71c9e6a133f3deba4c3315c2062070a10bf;hp=a1a293925ace89e4aa60372dfbc3a557b6257e03;hpb=019b46d3efe3bfcd1353a4b7afb6b792b2baa2b1;p=16.git diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index a1a29392..88ab4cde 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -366,7 +366,7 @@ typedef struct //===================================// #define PALSIZE 768 //vga #define NUMCHUNKS 416 //keen -#define MAXSCANLINES 240 // size of ylookup table +//#define MAXSCANLINES 240 // size of ylookup table #define MAXSHIFTS 4 #define STARTSPRITES 0 //temp @@ -400,7 +400,7 @@ typedef struct word quadwh; //preproccessed quad size of tilewidth and tileheight } tile_dimention_t; -#define MAXSCROLLEDGES 6 +#define MAXSCROLLEDGES 2 typedef struct { unsigned panx,pany; // panning adjustments inside port in pixels @@ -457,7 +457,7 @@ typedef struct word bordercolor; boolean fastpalette; byte far palette1[256][3],far palette2[256][3]; - pictabletype _seg *pictable; +//???? pictabletype _seg *pictable; //keen/cata vars // spritetabletype _seg *spritetable; // unsigned *shifttabletable[8]; @@ -497,11 +497,13 @@ typedef struct //from 16_mm //========================================================================== -#define MAXBLOCKS 800//kd=1300 wolf3d=700 cata=600 +#define MAXBLOCKS 1024 //kd=1300 wolf3d=700 cata=600 typedef struct mmblockstruct { - unsigned start,length; + //word start,length; + word start; dword length; + //word blob; //for data larger than 64k unsigned attributes; memptr *useptr; // pointer to the segment start struct mmblockstruct far *next; @@ -756,19 +758,20 @@ typedef struct //TODO: USE THIS!!!! #ifdef GRHEADERLINKED huffnode *grhuffman; #else - huffnode grhuffman[255]; + huffnode grhuffman[63]; #endif #ifdef AUDIOHEADERLINKED huffnode *audiohuffman; #else - huffnode audiohuffman[255]; + huffnode audiohuffman[63]; #endif CASVT chunkcomplen,chunkexplen;//long sd_t sd; //TODO: extend! and learn from keen/wolf/catacomb's code wwww + memptr spribuff; //temp } ca_t; //==========================================================================