=============================================================================\r
*/\r
\r
-typedef struct\r
+/*typedef struct\r
{\r
word bit0,bit1; // 0-255 is a character, > is a pointer to a node\r
-} huffnode;\r
+} huffnode;*/\r
\r
\r
/*typedef struct\r
\r
CAL_SetupMapFile (gvar);\r
\r
- gvar->ca.map.mapon = -1;\r
+ gvar->ca.camap.mapon = -1;\r
gvar->ca.ca_levelbit = 1;\r
gvar->ca.ca_levelnum = 0;\r
\r
\r
//===========================================================================\r
\r
+/*typedef struct\r
+{\r
+ unsigned RLEWtag;\r
+ long headeroffsets[100];\r
+ byte tileinfo[];\r
+} mapfiletype;*/\r
+\r
/*typedef struct\r
{\r
long planestart[3];\r
#include "src/lib/16_ca.h"\r
#include "src/lib/16_mm.h"\r
\r
+//TODO: 16_mm and 16_ca must handle this\r
typedef struct {\r
- bitmap_t huge *btdata;\r
- planar_buf_t huge *data;\r
+ bitmap_t huge *btdata; //old\r
+ planar_buf_t huge *data; //old\r
word tileHeight;\r
word tileWidth;\r
unsigned int rows;\r
unsigned int cols;\r
+#ifdef __DEBUG__\r
boolean debug_text; //show the value of the tile! wwww\r
byte *debug_data;\r
+#endif\r
} tiles_t;\r
\r
+//TODO: 16_mm and 16_ca must handle this\r
typedef struct {\r
- byte * huge *data;\r
- tiles_t **tiles;\r
- int width; //this has to be signed!\r
- int height; //this has to be signed!\r
+ //long planestart[3];\r
+ unsigned planelength[3];\r
+ byte * huge *data; //TODO: 16_mm and 16_ca must handle this\r
+ tiles_t **tiles; //TODO: 16_mm and 16_ca must handle this\r
+ int width, height; //this has to be signed!\r
+ char name[16];\r
} map_t;\r
\r
int loadmap(char *mn, map_t *map);\r
#define NUMMAPS 4//39\r
#define MAPPLANES 3\r
\r
+typedef struct\r
+{\r
+ word bit0,bit1; // 0-255 is a character, > is a pointer to a node\r
+} huffnode;\r
+\r
typedef struct\r
{\r
int mapon, mapnum;\r
__segment *mapsegs[4];\r
__segment *mapheaderseg[NUMMAPS];\r
__segment *tinf;\r
-} mapinfo_t;\r
+} ca_mapinfo_t;\r
\r
typedef struct\r
{\r
int maphandle[4]; // handle to MAPTEMP / GAMEMAPS\r
-} handle_t;\r
+} ca_handle_t;\r
\r
typedef struct\r
{\r
byte ca_levelbit,ca_levelnum;\r
- handle_t file; //files to open\r
- mapinfo_t map;\r
+ ca_handle_t file; //files to open\r
+ ca_mapinfo_t camap;\r
//_seg *grsegs[NUMCHUNKS];\r
//byte far grneeded[NUMCHUNKS];\r
//huffnode huffnode;\r