diff --git a/engine/client/sys_win.c b/engine/client/sys_win.c index 13f8146f2..fbc13ad0e 100644 --- a/engine/client/sys_win.c +++ b/engine/client/sys_win.c @@ -2032,8 +2032,10 @@ void Sys_SendKeyEvents (void) sys_parentheight = strtoul(Cmd_Argv(4), NULL, 0); sys_parentwindow = (HWND)(intptr_t)strtoull(Cmd_Argv(5), NULL, 16); } +#if !defined(CLIENTONLY) || defined(CSQC_DAT) || defined(MENU_DAT) else if (QCExternalDebuggerCommand(text)) /*handled elsewhere*/; +#endif else { Cbuf_AddText(text, RESTRICT_LOCAL); diff --git a/engine/common/pr_bgcmd.c b/engine/common/pr_bgcmd.c index c9f7a275c..99f1cf3da 100644 --- a/engine/common/pr_bgcmd.c +++ b/engine/common/pr_bgcmd.c @@ -166,6 +166,7 @@ qboolean QCExternalDebuggerCommand(char *text) if (sv.world.progs && sv.world.progs->EvaluateDebugString) values[1] = sv.world.progs->EvaluateDebugString(sv.world.progs, variable); #endif +#ifndef SERVERONLY #ifdef CSQC_DAT if (csqc_world.progs && csqc_world.progs->EvaluateDebugString) values[2] = csqc_world.progs->EvaluateDebugString(csqc_world.progs, variable); @@ -173,6 +174,7 @@ qboolean QCExternalDebuggerCommand(char *text) #ifdef MENU_DAT if (menu_world.progs && menu_world.progs->EvaluateDebugString) values[3] = menu_world.progs->EvaluateDebugString(menu_world.progs, variable); +#endif #endif } @@ -206,6 +208,7 @@ qboolean QCExternalDebuggerCommand(char *text) filename = Cmd_Argv(2); line = strtoul(Cmd_Argv(3), NULL, 0); //togglebreakpoint just finds the first statement (via the function table for file names) with the specified line number, and sets some unused high bit that causes it to be an invalid opcode. +#ifndef SERVERONLY #ifdef CSQC_DAT if (csqc_world.progs && csqc_world.progs->ToggleBreak) csqc_world.progs->ToggleBreak(csqc_world.progs, filename, line, mode); @@ -214,6 +217,7 @@ qboolean QCExternalDebuggerCommand(char *text) if (menu_world.progs && menu_world.progs->ToggleBreak) menu_world.progs->ToggleBreak(menu_world.progs, filename, line, mode); #endif +#endif #ifndef CLIENTONLY if (sv.world.progs && sv.world.progs->ToggleBreak) sv.world.progs->ToggleBreak(sv.world.progs, filename, line, mode);