X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.c;h=854615b0fb3b02c3db97325c873f09a00518da30;hb=fd22359b3cf8abccf814365b79906b15a98c8e4e;hp=5a9173f7e807a914ec25576d171eb3200e7b66e2;hpb=0e305ed530c51bad26fa3048c8e1c138d547d946;p=16.git diff --git a/src/lib/16_dbg.c b/src/lib/16_dbg.c index 5a9173f7..854615b0 100755 --- a/src/lib/16_dbg.c +++ b/src/lib/16_dbg.c @@ -1,3 +1,25 @@ +/* Project 16 Source Code~ + * Copyright (C) 2012-2017 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; @@ -288,7 +310,7 @@ void ShowPalVal (global_game_variables_t *gvar) spv.i = 0; // IN_UserInput(1, gvar); - modexpdump(&gvar->video.page[0]); + modexpdump(0, gvar); for (spv.oi = 1,done = false;!done;) { @@ -310,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 @@ -385,7 +407,7 @@ void ShowPalVal (global_game_variables_t *gvar) break; } } - IN_UserInput(1, gvar); +// IN_UserInput(1, gvar); } #endif //debug vl #endif //watcomc