From e2336071d442777e796e85580a96e1a6c05ac306 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 2 Mar 2003 01:30:44 +0000 Subject: [PATCH] changed lots of printf to Con_Printf removed some trailing whitespace git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2795 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 4 ++-- host.c | 16 ++++++++-------- model_brush.c | 2 +- sys_shared.c | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cl_particles.c b/cl_particles.c index 0367e5fa..da745f49 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -458,7 +458,7 @@ void CL_ReadPointFile_f (void) char *pointfile = NULL, *pointfilepos, *t, tchar; #if WORKINGLQUAKE char name[MAX_OSPATH]; - + sprintf (name,"maps/%s.pts", cl.worldmodel->name); COM_FOpenFile (name, &f); if (f) @@ -1328,7 +1328,7 @@ void CL_MoveParticles (void) } break; default: - printf("unknown particle type %i\n", p->type); + Con_Printf("unknown particle type %i\n", p->type); p->die = -1; break; } diff --git a/host.c b/host.c index 455d0bef..7c0957cc 100644 --- a/host.c +++ b/host.c @@ -832,11 +832,11 @@ void Host_Frame (float time) time1 = Sys_DoubleTime (); _Host_Frame (time); - time2 = Sys_DoubleTime (); - + time2 = Sys_DoubleTime (); + timetotal += time2 - time1; timecount++; - + if (timecount < 1000) return; @@ -916,8 +916,8 @@ void Host_Init (void) Cbuf_Execute (); host_initialized = true; - - Con_Printf ("========Quake Initialized=========\n"); + + Con_Printf ("========Quake Initialized=========\n"); if (cls.state != ca_dedicated) VID_Open(); @@ -935,15 +935,15 @@ to run quit through here before the final handoff to the sys code. void Host_Shutdown(void) { static qboolean isdown = false; - + if (isdown) { - printf ("recursive shutdown\n"); + Con_Printf ("recursive shutdown\n"); return; } isdown = true; - Host_WriteConfiguration (); + Host_WriteConfiguration (); CDAudio_Shutdown (); NET_Shutdown (); diff --git a/model_brush.c b/model_brush.c index 20a57faf..50b74903 100644 --- a/model_brush.c +++ b/model_brush.c @@ -2400,7 +2400,7 @@ static void Mod_RecursiveNodePortals (mnode_t *node) nodeportalwinding = ClipWinding (nodeportalwinding, &clipplane, true); if (!nodeportalwinding) { - printf ("Mod_RecursiveNodePortals: WARNING: new portal was clipped away\n"); + Con_Printf ("Mod_RecursiveNodePortals: WARNING: new portal was clipped away\n"); break; } } diff --git a/sys_shared.c b/sys_shared.c index 5b81ce0e..76c32fa7 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -253,7 +253,7 @@ void Sys_Shared_EarlyInit(void) if (COM_CheckParm("-nostdout")) sys_nostdout = 1; else - printf("%s\n", engineversion); + Con_Printf("%s\n", engineversion); } void Sys_Shared_LateInit(void) -- 2.39.2