From: sparky4 Date: Fri, 7 Jul 2017 20:32:57 +0000 (-0500) Subject: 16_ca needs huge amounts of work and I should remember what needs to be done soon... X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=be16a39d3ed2b062cca8167096a24dd7aa826b44 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] [CA_CacheMap added seems to be used in start a new game] what is mapsegs? bcexmm reports normally again... it acts funny with a unsigned long being assigned coreleft()'s value[vrldbg.exe added for a dirivative of vrldbg thanks johncampbell321\!] ok i fised up what i have done --- diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index a3d0e92c..18c02bbb 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1361,7 +1361,7 @@ extern char global_temp_status_text2[512]; void MM_ShowMemory (global_game_variables_t *gvar) { mmblocktype far *scan; - unsigned color,temp,x,y ,w,width; + unsigned color,temp,x,y ,w,width,sw; sdword end,owner; byte scratch[160],scratch0[4096],str[16]; #ifdef MMSMSCANINFO @@ -1387,7 +1387,7 @@ reset: end = -1; w = 0; - width = gvar->video.page[0].sw; + width = gvar->video.page[0].width; sw = gvar->video.page[0].sw; CA_OpenDebug (gvar); while (scan) @@ -1419,8 +1419,8 @@ reset: Quit (gvar, "MM_ShowMemory: Memory block order currupted!"); } end = scan->length-1; - y = scan->start/width; - x = scan->start%width; + y = gvar->video.page[0].dx+(scan->start/sw); + x = gvar->video.page[0].dy+(scan->start%sw); #if 0 //def MMSMSCANINFO if(restarted){ @@ -1591,8 +1591,8 @@ reset: }else ypos+=8; if(gvar->video.VL_Started) { - y = scaninfo[q].scan->start/width; - x = scaninfo[q].scan->start%width; + y = scaninfo[q].scan->start/sw; + x = scaninfo[q].scan->start%sw; if(!mmsmscaninfoxyposinew) { y = ypos;