OSDN Git Service

updated copyright. i am not dead just busy. i am working more on wolfenstien 3d and...
[proj16/16.git] / src / lib / 16_dbg.c
index 5a9173f..0c860ad 100755 (executable)
@@ -1,3 +1,25 @@
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
 #include "src/lib/16_dbg.h"\r
 \r
 #ifdef __DEBUG__\r
@@ -11,7 +33,7 @@ boolean dbg_debugpm=0;
 boolean dbg_debugca=0;\r
 #endif\r
 #ifdef __DEBUG_InputMgr__\r
-boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0,dbg_nointest=0;\r
+boolean dbg_testkeyin=0,dbg_testcontrolnoisy=0,dbg_nointest=0,dbg_joymousedelta=0;\r
 #endif\r
 #ifdef __DEBUG_MAP__\r
 boolean dbg_maptext=0;\r
@@ -288,7 +310,7 @@ void ShowPalVal (global_game_variables_t *gvar)
        spv.i = 0;\r
 \r
 //     IN_UserInput(1, gvar);\r
-       modexpdump(&gvar->video.page[0]);\r
+       modexpdump(0, gvar);\r
 \r
        for (spv.oi = 1,done = false;!done;)\r
        {\r
@@ -310,13 +332,13 @@ void ShowPalVal (global_game_variables_t *gvar)
 \r
                if(spv.oi!=spv.i)\r
                {\r
-                       modexpdump(&gvar->video.page[0]);\r
+                       modexpdump(0, gvar);\r
                        modexClearRegion(&gvar->video.page[0], spv.palx+TILEWH, spv.paly+TILEWH, spv.mult, spv.mult, 5);\r
                        modexClearRegion(&gvar->video.page[0], spv.palx+TILEWH+1, spv.paly+TILEWH+1, spv.mult-2, spv.mult-2, spv.i);\r
                        spv.oi = spv.i;\r
                }\r
 \r
-#define SHOWPALVARPRINT modexprint(&(gvar->video.page[0]), xpos, ypos, 1, 0, ccolor, 8, gvar->video.VL_Started, global_temp_status_text); ypos+=8;\r
+#define SHOWPALVARPRINT modexprint(&(gvar->video.page[0]), xpos, ypos, 1, 1, ccolor, 8, gvar->video.VL_Started, global_temp_status_text); ypos+=8;\r
                sprintf(global_temp_status_text, "%03u", spv.i); SHOWPALVARPRINT\r
                sprintf(global_temp_status_text, "r %03u", gvar->video.palette[(spv.i*3)+0]/*>>2*/); SHOWPALVARPRINT\r
                sprintf(global_temp_status_text, "g %03u", gvar->video.palette[(spv.i*3)+1]/*>>2*/); SHOWPALVARPRINT\r
@@ -385,7 +407,7 @@ void ShowPalVal (global_game_variables_t *gvar)
                        break;\r
                }\r
        }\r
-       IN_UserInput(1, gvar);\r
+//     IN_UserInput(1, gvar);\r
 }\r
 #endif //debug vl\r
 #endif //watcomc\r