]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Make the "no such builtin" message more descriptive
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8152 d7cf8633-e32d-0410-b094-e92efae38249

mvm_cmds.c
prvm_execprogram.h

index 7a5d41b8dd2807f2b7a399c79c600ae2927b7c98..36e0b4173774ec967e66d4898b6f4cc8bb3b264d 100644 (file)
@@ -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)
        {
index 6b7018c12e284774a35f0866914ac5c3c1654083..38a13859ea42779380240e0373ae71a65313c7ce 100644 (file)
                                        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);