X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.c;h=0a467b2351e6a30ea21cb59fb77dea076208fba9;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=28cc6d0116070161981de6009228f2aa9762eb5b;hpb=8e634200defb60b0dabf4e5c6421f19014d187d4;p=16.git
diff --git a/src/lib/16_dbg.c b/src/lib/16_dbg.c
index 28cc6d01..0a467b23 100755
--- a/src/lib/16_dbg.c
+++ b/src/lib/16_dbg.c
@@ -1,3 +1,25 @@
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include "src/lib/16_dbg.h"
#ifdef __DEBUG__
@@ -11,7 +33,7 @@ boolean dbg_debugpm=0;
boolean dbg_debugca=0;
#endif
#ifdef __DEBUG_InputMgr__
-boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0,dbg_nointest=0;
+boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0,dbg_nointest=0,dbg_joymousedelta=0;
#endif
#ifdef __DEBUG_MAP__
boolean dbg_maptext=0;
@@ -252,10 +274,8 @@ static char buf[10];
//#define SHOWPALVARIMODQUAD ((spv.i)%QUADWH)
#define SHOWPALVARIMOD ((spv.i)%TILEWH)
#define SHOWPALVARIDIV ((spv.i)/TILEWH)
-#define SHOWPALVARIMODCOND (!SHOWPALVARIMOD)
-#define SHOWPALVARIDIVCOND (!SHOWPALVARIDIV)
-#define SHOWPALVARIMODIFCOND if(SHOWPALVARIMODCOND && spv.i)
-#define SHOWPALVARIDIVIFCOND if(SHOWPALVARIDIVCOND && spv.i)
+#define SHOWPALVARIMODIFCOND if((!SHOWPALVARIMOD) && spv.i)
+#define SHOWPALVARIDIVIFCOND if((!SHOWPALVARIDIV) && spv.i)
//video.page[0]);
+ modexpdump(0, gvar);
for (spv.oi = 1,done = false;!done;)
{
@@ -312,13 +332,13 @@ void ShowPalVal (global_game_variables_t *gvar)
if(spv.oi!=spv.i)
{
- modexpdump(&gvar->video.page[0]);
+ modexpdump(0, gvar);
modexClearRegion(&gvar->video.page[0], spv.palx+TILEWH, spv.paly+TILEWH, spv.mult, spv.mult, 5);
modexClearRegion(&gvar->video.page[0], spv.palx+TILEWH+1, spv.paly+TILEWH+1, spv.mult-2, spv.mult-2, spv.i);
spv.oi = spv.i;
}
-#define SHOWPALVARPRINT modexprint(&(gvar->video.page[0]), xpos, ypos, 1, 0, ccolor, 8, gvar->video.VL_Started, global_temp_status_text); ypos+=8;
+#define SHOWPALVARPRINT modexprint(&(gvar->video.page[0]), xpos, ypos, 1, 1, ccolor, 8, gvar->video.VL_Started, global_temp_status_text); ypos+=8;
sprintf(global_temp_status_text, "%03u", spv.i); SHOWPALVARPRINT
sprintf(global_temp_status_text, "r %03u", gvar->video.palette[(spv.i*3)+0]/*>>2*/); SHOWPALVARPRINT
sprintf(global_temp_status_text, "g %03u", gvar->video.palette[(spv.i*3)+1]/*>>2*/); SHOWPALVARPRINT
@@ -387,7 +407,7 @@ void ShowPalVal (global_game_variables_t *gvar)
break;
}
}
- IN_UserInput(1, gvar);
+// IN_UserInput(1, gvar);
}
#endif //debug vl
#endif //watcomc