From: bones_was_here Date: Sat, 15 Jul 2023 12:28:18 +0000 (+1000) Subject: Add prefix to VM_Warning indicating which VM it came from X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=17601b9cff2eea0e32d1520d9f69d02c1bb41d26;p=xonotic%2Fdarkplaces.git Add prefix to VM_Warning indicating which VM it came from A few messages include this but many don't, and in future there will be less functions with SV or CL in their name. Signed-off-by: bones_was_here --- diff --git a/prvm_cmds.c b/prvm_cmds.c index d362aa72..9554aa44 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -32,7 +32,7 @@ void VM_Warning(prvm_prog_t *prog, const char *fmt, ...) dpvsnprintf(msg,sizeof(msg),fmt,argptr); va_end(argptr); - Con_Printf(CON_WARN "%s", msg); + Con_Printf(CON_WARN "%s VM warning: %s", prog->name, msg); // TODO: either add a cvar/cmd to control the state dumping or replace some of the calls with Con_Printf [9/13/2006 Black] if(prvm_backtraceforwarnings.integer && recursive != host.realtime) // NOTE: this compares to the time, just in case if PRVM_PrintState causes a Host_Error and keeps recursive set