=\r
======================\r
*/\r
-/*++++\r
-void CA_CacheMap (int mapnum)\r
+/*++++ fuckin segments!\r
+void CA_CacheMap (global_game_variables_t *gvar)\r
{\r
long pos,compressed;\r
int plane;\r
#endif\r
\r
\r
-// MDM begin - (GAMERS EDGE)\r
-//\r
- if (!FindFile("GAMEMAPS."EXT,NULL,1))\r
- Quit("CA_CacheMap(): Can't find level files.");\r
-//\r
-// MDM end\r
-\r
-\r
//\r
// free up memory from last map\r
//\r
- if (mapon>-1 && mapheaderseg[mapon])\r
- MM_SetPurge (&(memptr)mapheaderseg[mapon],3);\r
+ if (mapon>-1 && mapheaderseg[gvar->ca.mapon])\r
+ MM_SetPurge (&(memptr)mapheaderseg[gvar-ca.mapon],3);\r
for (plane=0;plane<MAPPLANES;plane++)\r
if (mapsegs[plane])\r
MM_FreePtr (&(memptr)mapsegs[plane]);\r
typedef struct\r
{\r
byte ca_levelbit,ca_levelnum;\r
- int mapon;\r
+ int mapon, mapnum;\r
handle_t file; //files to open\r
+ //unsigned _seg *mapsegs[4];\r
//_seg *grsegs[NUMCHUNKS];\r
//byte far grneeded[NUMCHUNKS];\r
//huffnode huffnode;\r