]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_edict.c
Change prefix of cmds in host_cmd.c to match the side of the engine they belong
[xonotic/darkplaces.git] / prvm_edict.c
index d6f4573b561a145302c694b2ec55bdf24766654b..e3e524f7fa91ba6502caeb5911dde0e08646525d 100644 (file)
@@ -2720,7 +2720,7 @@ void PRVM_Breakpoint(prvm_prog_t *prog, int stack_index, const char *text)
        Con_Printf("PRVM_Breakpoint: %s\n", text);
        PRVM_PrintState(prog, stack_index);
        if (prvm_breakpointdump.integer)
-               Host_Savegame_to(prog, va(vabuf, sizeof(vabuf), "breakpoint-%s.dmp", prog->name));
+               SV_Savegame_to(prog, va(vabuf, sizeof(vabuf), "breakpoint-%s.dmp", prog->name));
 }
 
 void PRVM_Watchpoint(prvm_prog_t *prog, int stack_index, const char *text, etype_t type, prvm_eval_t *o, prvm_eval_t *n)
@@ -2907,7 +2907,12 @@ static void PRVM_EdictWatchpoint_f(cmd_state_t *cmd)
        PRVM_UpdateBreakpoints(prog);
 }
 
-void PRVM_Init_Commands (void)
+/*
+===============
+PRVM_Init
+===============
+*/
+void PRVM_Init (void)
 {
        Cmd_AddCommand(CMD_SHARED, "prvm_edict", PRVM_ED_PrintEdict_f, "print all data about an entity number in the selected VM (server, client, menu)");
        Cmd_AddCommand(CMD_SHARED, "prvm_edicts", PRVM_ED_PrintEdicts_f, "prints all data about all entities in the selected VM (server, client, menu)");
@@ -2948,15 +2953,7 @@ void PRVM_Init_Commands (void)
        Cvar_RegisterVariable (&prvm_garbagecollection_scan_limit);
        Cvar_RegisterVariable (&prvm_garbagecollection_strings);
        Cvar_RegisterVariable (&prvm_stringdebug);
-}
 
-/*
-===============
-PRVM_Init
-===============
-*/
-void PRVM_Init (void)
-{
        // COMMANDLINEOPTION: PRVM: -norunaway disables the runaway loop check (it might be impossible to exit DarkPlaces if used!)
        prvm_runawaycheck = !COM_CheckParm("-norunaway");