]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_exec.c
added "sv_saveentfile" command to allow easy dumping of .ent files from maps so they...
[xonotic/darkplaces.git] / prvm_exec.c
index adaf7967eb16f057997a96d779a225966580a3aa..f6401c03aad545a9d034fdf09d4bb254dc67836c 100644 (file)
@@ -195,7 +195,7 @@ void PRVM_Profile_f (void)
        //      howmany = atoi(Cmd_Argv(1));
        if(Cmd_Argc() != 2)
        {
-               Con_Print("prvm_profile <program name>\n");
+               Con_Printf("prvm_profile <program name>\n");
                return;
        }
 
@@ -233,7 +233,8 @@ void PRVM_Profile_f (void)
 void PRVM_CrashAll()
 {
        int i;
-       PRVM_Begin; 
+       prvm_prog_t *oldprog = prog;
+
        for(i = 0; i < PRVM_MAXPROGS; i++)
        {
                if(!PRVM_ProgLoaded(i))
@@ -241,7 +242,8 @@ void PRVM_CrashAll()
                PRVM_SetProg(i);
                PRVM_Crash();
        }
-       PRVM_End;
+       
+       prog = oldprog;
 }
 
 void PRVM_Crash()