X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=8f8c27f514c90a91fbd582785df3eaef5fcbc2e0;hb=6b164d70a5927e8955b1e0869c4ad32d63410d00;hp=7fd790a65de362b36585bc98fea063c0c93ac12a;hpb=b40411c754cec4dc88f6a4183f475584b9205a2b;p=16.git diff --git a/src/scroll.c b/src/scroll.c index 7fd790a6..8f8c27f5 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -85,6 +85,14 @@ void main(int argc, char *argv[]) return; } + if (_DEBUG_INIT() == 0) { +#ifdef DEBUGSERIAL + printf("WARNING: Failed to initialize DEBUG output\n"); +#endif + } + _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log + _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U); + pan.pn=1; //player[0].data = &pp; @@ -227,11 +235,10 @@ void main(int argc, char *argv[]) } if(player[0].q == (TILEWH/(player[0].speed))+1 && player[0].info.dir != 2 && (player[0].triggerx == 5 && player[0].triggery == 5)){ player[0].hp--; } //debugging binds! - //if(IN_KeyDown(0x0E)) while(1){ if(xmsmalloc(24)) break; } if(IN_KeyDown(2)){ modexShowPage(mv[0].page); pan.pn=0; } if(IN_KeyDown(3)){ modexShowPage(mv[1].page); pan.pn=1; } - //if(IN_KeyDown(4)){ modexShowPage(mv[2].page); pan.pn=2; } - //if(IN_KeyDown(4+1)){ modexShowPage(mv[3].page); pan.pn=3; } + if(IN_KeyDown(4)){ modexShowPage(mv[2].page); pan.pn=2; } + if(IN_KeyDown(4+1)){ modexShowPage(mv[3].page); pan.pn=3; } if(IN_KeyDown(25)){ modexpdump(mv[0].page); modexpdump(mv[1].page); //IN_Ack(); } //p @@ -314,7 +321,7 @@ void main(int argc, char *argv[]) printf("tile resolution: %dx", gvar.video.page[0].tw); printf("%d \n", gvar.video.page[0].th); printf("middle tile position: %dx", gvar.video.page[0].tilemidposscreenx); printf("%d\n", gvar.video.page[0].tilemidposscreeny); modexprintmeminfo(&gvar.video); - printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d ", pan.pn, mv[pan.pn].ty); printf("panswitch=%u\n", panswitch); + printf("mv[%u].tx: %d", pan.pn, mv[pan.pn].tx); printf(" mv[%u].ty: %d ", pan.pn, mv[pan.pn].ty); printf("gvar.video.p=%u\n", gvar.video.p); //printf("player[1].q: %d", player[1].q); printf(" player[1].d: %d\n", player[1].d); printf("\n"); //printf("map.width=%d map.height=%d map.data[0]=%d\n", mv[0].map->width, mv[0].map->height, mv[0].map->data[0]);