From a96dec96b53335b0760d8d54c64e4b58f1ea105a Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 15 May 2017 16:27:47 -0500 Subject: [PATCH] xcroll.exe needs through testing on real hardware\!\!\!\! ass\! 16_ca needs huge amounts of work and I should remember what needs to be done soon[going to port rest of code to borland c some time so we can use the core components of id engine here ][going to add 16_us.c eventually but the debug system and CA_ PM_ and MM_ usage is priority now]older zcroll renamed to xcroll][zcroll is now the pre menu game loop system with PROPER data usage with CAMMPM] added 1st scroll back [i work on CA] palette debug show values added wwww and i need to know how to see vrs/vrl imaage data palette index numbers [i am trying to find out how the hell you get the index number values of VRL/VRS] boom has been fixed ^^[CA_CacheMap added seems to be used in start a new game] what is mapsegs? --- src/lib/16_ca.c | 10 +++++----- src/lib/16_tdef.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index ce406dd5..6c7eddd2 100755 --- a/src/lib/16_ca.c +++ b/src/lib/16_ca.c @@ -1895,7 +1895,7 @@ void CA_CacheGrChunk (int chunk) = ====================== */ - +/*++++ segments! void CA_CacheMap (global_game_variables_t *gvar) { long pos,compressed; @@ -2006,7 +2006,7 @@ void CA_CacheMap (global_game_variables_t *gvar) if (compressed>BUFFERSIZE) MM_FreePtr(&bigbufferseg, gvar); } -} +}//*/ //=========================================================================== @@ -2140,9 +2140,9 @@ void CA_SetAllPurge (global_game_variables_t *gvar) // // free map headers and map planes // - for (i=0;ica.mapheaderseg[i]) - MM_SetPurge (MEMPTRCONV gvar->ca.mapheaderseg[i],3, gvar); +// for (i=0;ica.mapheaderseg[i]) +// MM_SetPurge (MEMPTRCONV gvar->ca.mapheaderseg[i],3, gvar); for (i=0;i<3;i++) if (gvar->ca.mapsegs[i]) diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index ffa22c01..79f0e66d 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -497,7 +497,7 @@ typedef struct //from 16_mm //========================================================================== -#define MAXBLOCKS 800 //kd=1300 wolf3d=700 cata=600 +#define MAXBLOCKS 600//800 //kd=1300 wolf3d=700 cata=600 typedef struct mmblockstruct { @@ -744,7 +744,7 @@ typedef struct //TODO: USE THIS!!!! byte _seg *tinf;//?? where in the id engine is this used and what is it? --sparky4 int mapon, mapnum; -// maptype _seg *mapheaderseg[NUMMAPS]; + maptype _seg *mapheaderseg[NUMMAPS]; unsigned _seg *mapsegs[MAPPLANES]; void _seg *grsegs[NUMCHUNKS]; byte far grneeded[NUMCHUNKS]; -- 2.39.5