From: black Date: Tue, 28 Oct 2003 22:29:30 +0000 (+0000) Subject: Fixed a bug that caused some messages to not be logged to the disk (Con_Print calls... X-Git-Tag: xonotic-v0.1.0preview~6289 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=449b12475e1848290002970f45fd4bdcd0a4d462 Fixed a bug that caused some messages to not be logged to the disk (Con_Print calls instead of Con_Printf). Changed the comment of Con_Print, so it isnt misleading any more. Fixed a bug so dp wont crash when VM_strzone/VM_strunzone is used. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3614 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index a991bad2..f3d1ebc7 100644 --- a/console.c +++ b/console.c @@ -267,7 +267,7 @@ void Con_Linefeed (void) Con_Print Handles cursor positioning, line wrapping, etc -All console printing must go through this in order to be logged to disk +All console printing must go through this in order to be displayed If no console is visible, the notify window will pop up. ================ */ diff --git a/prvm_cmds.c b/prvm_cmds.c index 7e399492..a9ce8ac9 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -318,7 +318,7 @@ void VM_print (void) char string[VM_STRINGTEMP_LENGTH]; VM_VarString(0, string, sizeof(string)); - Con_Print(string); + Con_Printf(string); } /* diff --git a/prvm_edict.c b/prvm_edict.c index c759fce1..5aa1d6af 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -690,7 +690,7 @@ void PRVM_ED_PrintEdicts_f (void) if(Cmd_Argc() != 2) { - Con_Print("prvm_edicts \n"); + Con_Printf("prvm_edicts \n"); return; } @@ -718,7 +718,7 @@ void PRVM_ED_PrintEdict_f (void) if(Cmd_Argc() != 3) { - Con_Print("prvm_edict \n"); + Con_Printf("prvm_edict \n"); return; } @@ -755,7 +755,7 @@ void PRVM_ED_Count_f (void) if(Cmd_Argc() != 2) { - Con_Print("prvm_count \n"); + Con_Printf("prvm_count \n"); return; } @@ -1465,6 +1465,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, char **required prog->flag |= PRVM_OP_STATE; PRVM_GCALL(reset_cmd)(); + PRVM_GCALL(init_cmd)(); // init mempools PRVM_MEM_Alloc(); @@ -1491,7 +1492,7 @@ void PRVM_Fields_f (void) if(Cmd_Argc() != 2) { - Con_Print("prvm_fields \n"); + Con_Printf("prvm_fields \n"); return; } @@ -1604,7 +1605,7 @@ void PRVM_Globals_f (void) }*/ if(Cmd_Argc () != 2) { - Con_Print ("prvm_globals \n"); + Con_Printf("prvm_globals \n"); return; } @@ -1659,8 +1660,6 @@ void PRVM_InitProg(int prognr) memset(prog, 0, sizeof(prvm_prog_t)); prog->time = &prog->_time; - - PRVM_GCALL(init_cmd)(); } int PRVM_GetProgNr() diff --git a/prvm_exec.c b/prvm_exec.c index 7ba8a1b2..f6401c03 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -195,7 +195,7 @@ void PRVM_Profile_f (void) // howmany = atoi(Cmd_Argv(1)); if(Cmd_Argc() != 2) { - Con_Print("prvm_profile \n"); + Con_Printf("prvm_profile \n"); return; }