]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_mm.c
showmemorydetail is working i added a little hax wwww
[16.git] / src / lib / 16_mm.c
index dcb8d86f790532907095152de6f0c3d3bc926484..544d280aca3ba052c22747653a5ce1d922712228 100755 (executable)
@@ -883,7 +883,7 @@ void MM_Startup (global_game_variables_t *gvar)
 //\r
 // get all available near conventional memory segments\r
 //\r
-       length=coreleft();\r
+       length=(word)coreleft();\r
        start = (void far *)(gvar->mm.nearheap = _nmalloc(length));\r
 \r
        length -= 16-(FP_OFF(start)&15);\r
@@ -1631,7 +1631,8 @@ void MM_ShowMemoryDetail (unsigned x, unsigned y, unsigned w, unsigned q, sdword
                                printf("%s", AARESET);\r
                                printf("\n");\r
                        }\r
-//0000                 fprintf(stdout, "q=%u   maxq=%u\n", q, maxq);\r
+//0000printf("%s", AABLACK); fprintf(stdout, "q=%u     maxq=%u\n", q, maxq); printf("%s", AARESET);\r
+fprintf(stdout, "");   //this is a HAX to make it decrement and increment properly when it is at 0 and qmax\r
                        while (!(scancode = gvar->in.inst->LastScan)){}\r
 \r
                        IN_ClearKey(scancode);\r