]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_edict.c
Added the drawing functions and added also probably menu only message functions
[xonotic/darkplaces.git] / prvm_edict.c
index 9ba389a7b9f84d5faed5dfe3e4edc995c48bef68..49fa7420320d8a2900bd159007e583640cdf5be3 100644 (file)
@@ -724,6 +724,7 @@ void PRVM_ED_PrintEdict_f (void)
        if (i >= prog->num_edicts)
        {
                Con_Printf("Bad edict number\n");
+               PRVM_End;
                return;
        }
        PRVM_ED_PrintNum (i);
@@ -1606,7 +1607,7 @@ void PRVM_Globals_f (void)
        Con_Printf("%s :", PRVM_NAME);
 
        for (i = 0;i < prog->progs->numglobaldefs;i++)
-               Con_Printf("%s\n", PRVM_GetString(pr_globaldefs[i].s_name));
+               Con_Printf("%s\n", PRVM_GetString(prog->globaldefs[i].s_name));
        Con_Printf("%i global variables, totalling %i bytes\n", prog->progs->numglobals, prog->progs->numglobals * 4);
 
        PRVM_End;
@@ -1629,7 +1630,7 @@ void PRVM_Init (void)
        Cvar_RegisterVariable (&prvm_boundscheck);
        Cvar_RegisterVariable (&prvm_traceqc);
 
-       VM_Cmd_Init();
+       //VM_Cmd_Init();
 }
 
 /*
@@ -1661,6 +1662,12 @@ prvm_edict_t *PRVM_EDICT_NUM_ERROR(int n, char *filename, int fileline)
        return NULL;
 }
 
+void PRVM_ProcessError(void)
+{
+       if(prog)
+               PRVM_GCALL(error_cmd)();
+}
+
 /*
 int NUM_FOR_EDICT_ERROR(edict_t *e)
 {