boolean dbg_maptext=0;\r
byte *dbg_mapdata;\r
#endif\r
+#ifdef __DEBUG_RF__\r
+boolean dbg_pagenorendermap=0,dbg_pagedelayrendermap=0;\r
+#endif\r
+#ifdef __DEBUG_SPRI__\r
+boolean dbg_delayanimation=0;\r
+#endif\r
#endif //debug\r
\r
#ifdef __WATCOMC__\r
//#define __DEBUG_CA__\r
//#define __DEBUG_PM__\r
//#define __DEBUG_MM__\r
+//#define __DEBUG_RF__\r
+#define __DEBUG_SPRI__\r
\r
\r
#ifdef __DEBUG__\r
extern boolean dbg_maptext;\r
extern byte *dbg_mapdata;\r
#endif\r
+#ifdef __DEBUG_RF__\r
+extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;\r
+#endif\r
+#ifdef __DEBUG_SPRI__\r
+extern boolean dbg_delayanimation;\r
+#endif\r
#endif\r
\r
#ifdef __WATCOMC__\r
boolean IN_KeyDown(byte code)\r
{\r
#ifdef __DEBUG_InputMgr__\r
- if(inst.Keyboard[code])\r
- printf("IN_KeyDown(%c): %u\n", code, inst.Keyboard[code]);\r
+// if(inst.Keyboard[code])\r
+// printf("IN_KeyDown(%c): %u\n", code, inst.Keyboard[code]);\r
if(!dbg_nointest)\r
#endif\r
return inst.Keyboard[code];\r
enti->spri.sprite_vrl_cont.buffer + sizeof(struct vrl1_vgax_header),\r
enti->spri.sprite_vrl_cont.data_size\r
);\r
+#endif\r
+#ifdef __DEBUG_SPRI__\r
+ if(dbg_delayanimation) delay(250);//{ while(!IN_KeyDown(sc_Space)/* && !IN_KeyDown(sc_Escape)*/){} delay(250); }\r
#endif\r
if(!video->rss)\r
{\r
if(IN_KeyDown(88)){ panswitch=!panswitch; IN_UserInput(1, &gvar); } \\r
TAIL_FUNCTIONKEYFUNCTIONS0EXE\r
\r
+#define RFDEBUGFUNCTIONS\r
+#ifdef __DEBUG_RF__\r
+#undef RFDEBUGFUNCTIONS\r
+#define RFDEBUGFUNCTIONS \\r
+ if(IN_KeyDown(sc_F11)){ dbg_pagedelayrendermap=!dbg_pagedelayrendermap; IN_UserInput(1, &gvar); } \\r
+ if(IN_KeyDown(sc_F9)){ dbg_pagenorendermap=!dbg_pagenorendermap; IN_UserInput(1, &gvar); }\r
+#endif\r
+\r
+/*#define SPRIDEBUGFUNCTIONS\r
+#ifdef __DEBUG_SPRI__\r
+#undef SPRIDEBUGFUNCTIONS\r
+#define SPRIDEBUGFUNCTIONS \\r
+ if(IN_KeyDown(sc_Y)){ dbg_delayanimation=!dbg_delayanimation; IN_UserInput(1, &gvar); }\r
+// if(IN_KeyDown(sc_F9)){ dbg_pagenorendermap=!dbg_pagenorendermap; IN_UserInput(1, &gvar); }\r
+#endif*/\r
+\r
#define TAIL_FUNCTIONKEYFUNCTIONS0EXE \\r
if(IN_KeyDown(sc_F4)){ turboXT(12); IN_UserInput(1, &gvar); } \\r
- if(IN_KeyDown(87/*sc_F11*/)){ pagedelayrendermap=!pagedelayrendermap; IN_UserInput(1, &gvar); } \\r
if(IN_KeyDown(68/*sc_F10*/)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1, &gvar); } \\r
- if(IN_KeyDown(sc_F9)){ pagenorendermap=!pagenorendermap; IN_UserInput(1, &gvar); } \\r
if(IN_KeyDown(sc_F8)){ gvar.video.bgps=!gvar.video.bgps; IN_UserInput(1, &gvar); } \\r
if(IN_KeyDown(sc_F7)){ ZC_ShowMV(&gvar.mv, 0, 1); IN_UserInput(1, &gvar); } \\r
if(IN_KeyDown(sc_F6)){ ZC_ShowMV(&gvar.mv, 0, 0); IN_UserInput(1, &gvar); } \\r
if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss; IN_UserInput(1, &gvar); } \\r
- if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1, &gvar); }\r
+ if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1, &gvar); } \\r
+ if(IN_KeyDown(sc_Y)){ dbg_delayanimation=!dbg_delayanimation; IN_UserInput(1, &gvar); } \\r
+ RFDEBUGFUNCTIONS\r
\r
#define TAIL_PANKEYFUN \\r
TAIL_PANKEYFUNZC \\r
-Subproject commit 28578c14c4f230051b9cc217c344d8649985496d
+Subproject commit 69400af6d68a7c20510cf00374e3f27ba261ebbc
rx = (((i-1) % ((t->spri->sprite_vrl_cont.vrl_header->width)/t->tileWidth)) * t->tileWidth);\r
ry = (((i-1) / ((t->spri->sprite_vrl_cont.vrl_header->height)/t->tileHeight)) * t->tileHeight);\r
#ifndef TILERENDER\r
- if(!pagenorendermap) modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, i+1);\r
+#ifdef __DEBUG_RF__\r
+ if(!dbg_pagenorendermap)\r
+#endif\r
+ modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, i+1);\r
#else\r
modexDrawBmpRegion (page, x, y, rx, ry, t->tileWidth, t->tileHeight, i);\r
//draw_vrl1_vgax_modex(x-rx,y-ry,vrl_header,vrl_lineoffs,buffer+sizeof(*vrl_header),bufsz-sizeof(*vrl_header));\r
void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *player, word poopoffset)\r
{\r
int i; nibble z;\r
-if(pagedelayrendermap) if(!y) y+=TILEWH; else y-=TILEWH;\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap) if(!y) y+=TILEWH; else y-=TILEWH;\r
+#endif\r
poopoffset%=player[0].enti.speed;\r
//printf("y: %d\n", poopoffset);\r
-if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv->dx); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, global_temp_status_text); }\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv->dx); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, global_temp_status_text); }\r
+#endif\r
/* the position within the map array */\r
i=ty * mv->map->width + tx;\r
for( mv->dx=poopoffset; mv->dx<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; mv->dx+=mv->map->tiles->tileWidth, tx++) {\r
}\r
}\r
i++; /* next! */\r
- } if(pagedelayrendermap) delay(200);\r
+ }\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap) delay(200);\r
+#endif\r
}\r
\r
void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *player, word poopoffset)\r
{\r
int i; nibble z;\r
-if(pagedelayrendermap) if(!x) x+=TILEWH; else x-=TILEWH;\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap) if(!x) x+=TILEWH; else x-=TILEWH;\r
+#endif\r
poopoffset%=player[0].enti.speed;\r
//printf("x: %d\n", poopoffset);\r
-if(pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv->dy); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, global_temp_status_text); }\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", mv->dy); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, global_temp_status_text); }\r
+#endif\r
/* location in the map array */\r
i=ty * mv->map->width + tx;\r
/* We'll copy all of the columns in the screen,\r
}\r
}\r
i += mv->map->width;\r
- } if(pagedelayrendermap) delay(200);\r
+ }\r
+#ifdef __DEBUG_RF__\r
+if(dbg_pagedelayrendermap) delay(200);\r
+#endif\r
}\r
\r
void mapDrawWRow(map_view_t *mv, int tx, int ty, word y)\r
}\r
}\r
\r
-boolean pagenorendermap = 0;\r
-boolean pagedelayrendermap = 0;\r
\r
/* sync */\r
void shinku(global_game_variables_t *gv)\r
printf("gvar.video:\n");\\r
printf(" r=%u ", gvar.video.dorender);\\r
printf("bgps=%u ", gvar.video.bgps);\\r
+ printf("dbg_delayanimation=%u ", dbg_delayanimation);\\r
printf("\n\n");\r
\r
+/*\r
+ if(IN_KeyDown(sc_F11)){ pagedelayrendermap=!pagedelayrendermap; IN_UserInput(1, &gvar); }\r
+ if(IN_KeyDown(sc_F10)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1, &gvar); }\r
+ if(IN_KeyDown(sc_F9)){ pagenorendermap=!pagenorendermap; IN_UserInput(1, &gvar); }\r
+ if(IN_KeyDown(sc_F8)){ gvar.video.bgps=!gvar.video.bgps; IN_UserInput(1, &gvar); }\r
+ if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss; IN_UserInput(1, &gvar); }\r
+*/\r
+\r
extern boolean pagenorendermap, pagedelayrendermap;\r
\r
extern char global_temp_status_text[512];\r