From 6ad6b07439595dba081165e0ead2c954c8adb6b3 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 15 May 2017 16:47:31 -0500 Subject: [PATCH 1/1] xcroll.exe needs testing on real hardware\!\!\!\! it is working but not flexible 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 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/16_ca.c b/src/lib/16_ca.c index 6c7eddd2..ce406dd5 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 79f0e66d..94fecd95 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -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 -- 2.39.2