From a0f50a719fce55819b2cc03da7684ddfc38e0aa9 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 6 Mar 2004 01:54:44 +0000 Subject: [PATCH] con_notify is now measured in cl.time, not realtime, so cl_avidemo doesn't have terribly brief notify messages in it when rendering slowly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3975 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/console.c b/console.c index fa4a58dc..a30796b1 100644 --- a/console.c +++ b/console.c @@ -55,7 +55,7 @@ cvar_t con_notify = {CVAR_SAVE, "con_notify","4"}; cvar_t logfile = {0, "logfile","0"}; #define MAX_NOTIFYLINES 32 -// realtime time the line was generated for transparent notify lines +// cl.time time the line was generated for transparent notify lines float con_times[MAX_NOTIFYLINES]; int con_vislines; @@ -322,7 +322,7 @@ void Con_Print (const char *txt) if (con_notify.integer > MAX_NOTIFYLINES) Cvar_SetValueQuick(&con_notify, MAX_NOTIFYLINES); if (con_notify.integer > 0) - con_times[con_current % con_notify.integer] = realtime; + con_times[con_current % con_notify.integer] = cl.time; } } @@ -525,7 +525,7 @@ void Con_DrawNotify (void) time = con_times[i % con_notify.integer]; if (time == 0) continue; - time = realtime - time; + time = cl.time - time; if (time > con_notifytime.value) continue; text = con_text + (i % con_totallines)*con_linewidth; -- 2.39.2