From e4737a153074daf061d89670cb97ec7ee269b781 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 27 Feb 2008 19:04:49 +0000 Subject: [PATCH] Make the "no such builtin" message more descriptive git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8152 d7cf8633-e32d-0410-b094-e92efae38249 --- mvm_cmds.c | 2 +- prvm_execprogram.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mvm_cmds.c b/mvm_cmds.c index 7a5d41b8..36e0b417 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -170,7 +170,7 @@ void VM_M_callfunction(void) if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber]) prog->builtins[builtinnumber](); else - PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME); + PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME); } else if(func - prog->functions > 0) { diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 6b7018c1..38a13859 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -306,7 +306,7 @@ if (builtinnumber < prog->numbuiltins && prog->builtins[builtinnumber]) prog->builtins[builtinnumber](); else - PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME); + PRVM_ERROR("No such builtin #%i in %s; most likely cause: outdated engine build. Try updating!", builtinnumber, PRVM_NAME); } else st = prog->statements + PRVM_EnterFunction(newf); -- 2.39.2