//#define __DEBUG_CA__\r
//#define __DEBUG_PM__\r
//#define __DEBUG_MM__\r
-//#define __DEBUG_RF__\r
+#define __DEBUG_RF__\r
#define __DEBUG_SPRI__\r
#define __DEBUG_VL__\r
#endif\r
void INL_GetJoyDelta(word joy,int *dx,int *dy/*,boolean adaptive*/, global_game_variables_t *gvar)\r
{\r
word x,y;\r
- word TimeCount = *clockw;\r
+//00 word TimeCount = *clockw;\r
JoystickDef *def;\r
-static word lasttime;\r
+//00static word lasttime;\r
\r
IN_GetJoyAbs(joy,&x,&y);\r
def = gvar->in.JoyDefs + joy;\r
// *dy *= time;\r
// }\r
// }\r
- lasttime = TimeCount;\r
+//00 lasttime = TimeCount;\r
}\r
\r
///////////////////////////////////////////////////////////////////////////\r
word\r
IN_GetJoyButtonsDB(word joy)\r
{\r
- word TimeCount = *clockw;\r
- word lasttime;\r
+//00 word TimeCount = *clockw;\r
+//00 word lasttime;\r
word result1,result2;\r
\r
do\r
{\r
result1 = INL_GetJoyButtons(joy);\r
- lasttime = TimeCount;\r
- while(TimeCount == lasttime)\r
+//00 lasttime = TimeCount;\r
+//00 while(TimeCount == lasttime)\r
//;\r
result2 = INL_GetJoyButtons(joy);\r
} while(result1 != result2);\r
#undef SPRIDEBUGFUNCTIONS\r
#define SPRIDEBUGFUNCTIONS \\r
if(gvar.in.inst->Keyboard[sc_Y]){ dbg_delayanimation=!dbg_delayanimation; IN_UserInput(1, &gvar); }\r
-// if(gvar.in.inst->Keyboard[sc_F9]){ dbg_pagenorendermap=!dbg_pagenorendermap; IN_UserInput(1, &gvar); }\r
#endif*/\r
\r
#define TAIL_FUNCTIONKEYFUNCTIONS0EXE \\r
-Subproject commit 53e2844bbdf62f9b1636b01ba4ccc03668e572c5
+Subproject commit c6cb5cabeb8a4ff273bc07a04ed40590f004b275
poopoffset%=player[0].enti.spt;\r
//printf("y: %d\n", poopoffset);\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, 1, global_temp_status_text); }\r
+if(dbg_pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", poopoffset); modexprint(mv->page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, 1, global_temp_status_text); }\r
#endif\r
/* the position within the map array */\r
i=ty * mv->map->width + tx;\r
i++; /* next! */\r
}\r
#ifdef __DEBUG_RF__\r
-if(dbg_pagedelayrendermap) delay(200);\r
+if(dbg_pagedelayrendermap) DBG_RFDELAYMETHOD;\r
#endif\r
}\r
\r
poopoffset%=player[0].enti.spt;\r
//printf("x: %d\n", poopoffset);\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
+if(dbg_pagedelayrendermap){ sprintf(global_temp_status_text, "%-3u", poopoffset); modexprint(mv->page, player[0].enti.x, player[0].enti.y-28-(poopoffset*8) , 1, 0, PALMAPDRAWW, 1, 1, global_temp_status_text); }\r
#endif\r
/* location in the map array */\r
i=ty * mv->map->width + tx;\r
i += mv->map->width;\r
}\r
#ifdef __DEBUG_RF__\r
-if(dbg_pagedelayrendermap) delay(200);\r
+if(dbg_pagedelayrendermap) DBG_RFDELAYMETHOD;\r
#endif\r
}\r
\r
#define PCXBMPPTR PCXBMPVAR\r
\r
//row and colum drawing routines\r
-#define FULLRCREND\r
+//#define FULLRCREND\r
#define DRAWCOLNUM mv->page[id].dx\r
#define DRAWROWNUM mv->page[id].dy\r
//#define DRAWCOLNUM pl[plid].enti.q\r
#define MAPW 40\r
#define MAPH 30\r
\r
+extern struct glob_game_vars *ggvv;\r
+#ifdef __DEBUG_RF__\r
+#define DBG_RFDELAYMETHOD delay(250);\r
+#endif\r
+\r
//===========================================================================//\r
\r
//if(gvar.player[0].enti.hp==0) printf("%d wwww\n", gvar.player[0].enti.y+8);\r
\r
//#define NOMAPLOAD\r
//#define OLDPLAYERSPRITESTUFF\r
-#define XC_CTRLTYPE ctrl_Joystick1//ctrl_Mouse//ctrl_Keyboard\r
+#define XC_CTRLTYPE ctrl_Keyboard//ctrl_Joystick1//ctrl_Mouse\r
#ifdef __DEBUG__\r
#define SCROLLEXEDEBUG\r
#endif\r