From: sparky4 Date: Thu, 8 Sep 2016 15:02:04 +0000 (-0500) Subject: wwww yakuji wwww ca use to load maps w hmmm cachemap wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=6dd98c80d99983bcc2b8ca33f2670cb4fa7f2451;p=16.git wwww yakuji wwww ca use to load maps w hmmm cachemap wwww --- diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index 96bb4b48..ec62a170 100755 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -1817,8 +1817,8 @@ void CA_CacheGrChunk (int chunk) = ====================== */ -/*++++ -void CA_CacheMap (int mapnum) +/*++++ fuckin segments! +void CA_CacheMap (global_game_variables_t *gvar) { long pos,compressed; int plane; @@ -1831,19 +1831,11 @@ void CA_CacheMap (int mapnum) #endif -// MDM begin - (GAMERS EDGE) -// - if (!FindFile("GAMEMAPS."EXT,NULL,1)) - Quit("CA_CacheMap(): Can't find level files."); -// -// MDM end - - // // free up memory from last map // - if (mapon>-1 && mapheaderseg[mapon]) - MM_SetPurge (&(memptr)mapheaderseg[mapon],3); + if (mapon>-1 && mapheaderseg[gvar->ca.mapon]) + MM_SetPurge (&(memptr)mapheaderseg[gvar-ca.mapon],3); for (plane=0;plane