if (mm->bombonerror)
{
#ifdef __WATCOMC__
- heapdump();
+ //heapdump();
#endif
printf(OUT_OF_MEM_MSG,(size-mmi->nearheap));
printf("for stability reasons the program will shut down! wwww\n");
=====================
*/
-void MM_ShowMemory(/*page_t *page, */mminfo_t *mm)
+void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm)
{
mmblocktype huge *scan;
//++++ word color;
end = -1;
-CA_OpenDebug ();
+CA_OpenDebug (gvar);
//++++ chx=0;
//++++ chy=0;
if(scan->start<=end)
{
//printf(");
- write(debughandle,"\nMM_ShowMemory: Memory block order currupted!\n",strlen("\nMM_ShowMemory: Memory block order currupted!\n"));
+ write(gvar->handle.debughandle,"\nMM_ShowMemory: Memory block order currupted!\n",strlen("\nMM_ShowMemory: Memory block order currupted!\n"));
//modexprint(&page, chx, chy, 1, 0, 24, "\nMM_ShowMemory: Memory block order currupted!\n");
return;
}
ultoa (owner,str,16);
strcat (scratch,str);
strcat (scratch,"\n");
-write(debughandle,scratch,strlen(scratch));
+write(gvar->handle.debughandle,scratch,strlen(scratch));
//modexprint(page, chx, chy, 1, 0, 24, &scratch);
//++++chy+=4;
//fprintf(stdout, "%s", scratch);
scan = scan->next;
}
-CA_CloseDebug ();
+CA_CloseDebug (gvar);
//++++mh IN_Ack();
//**** VW_SetLineWidth(64);