]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_exec.c
VM_sprintf: support color codes in %s
[xonotic/darkplaces.git] / prvm_exec.c
index d1e37f76c70b914a33c53644be3eb022a6783385..49142b727a32db211c9737a7fdab7c118e1c065c 100644 (file)
@@ -176,6 +176,7 @@ void PRVM_PrintFunctionStatements (prvm_prog_t *prog, const char *name)
 
        // now print the range of statements
        Con_Printf("%s progs: disassembly of function %s (statements %i-%i, locals %i-%i):\n", prog->name, name, firststatement, endstatement, func->parm_start, func->parm_start + func->locals - 1);
+       prog->xfunction = func;
        for (i = firststatement;i < endstatement;i++)
        {
                PRVM_PrintStatement(prog, prog->statements + i);