X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=c41cb23c8ab8c41de9c1eb5233f7135d73d0b933;hb=512930af83dba9b49ac46a3520f7e8cb17f5d3c9;hp=df45e6ab722df26f38a9fde510ed1078c3e12c49;hpb=8b136462c6db8fd51aa6e0ec9604daf38c87eb49;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index df45e6a..c41cb23 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . *) -{$MODE DELPHI} +{$INCLUDE ../shared/a_modes.inc} unit g_console; interface @@ -388,6 +388,15 @@ begin AddCommand('d_player', DebugCommands); AddCommand('d_joy', DebugCommands); + AddCommand('dpp', ProfilerCommands); + AddCommand('dpu', ProfilerCommands); + AddCommand('dpc', ProfilerCommands); + AddCommand('r_gridrender', ProfilerCommands); + AddCommand('dbg_coldet_grid', ProfilerCommands); + + AddCommand('sq_use_grid', ProfilerCommands); + AddCommand('sq_use_sap', ProfilerCommands); + AddCommand('p1_name', GameCVars); AddCommand('p2_name', GameCVars); AddCommand('p1_color', GameCVars); @@ -915,7 +924,7 @@ begin while length(L) > 0 do begin f := Pos(#10, L); - if f < 0 then f := length(L)+1; + if f <= 0 then f := length(L)+1; conmsg(Copy(L, 1, f-1)); Delete(L, 1, f); end;