]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
con_notify is now measured in cl.time, not realtime, so cl_avidemo doesn't have terri...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Mar 2004 01:54:44 +0000 (01:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Mar 2004 01:54:44 +0000 (01:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3975 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index fa4a58dcb5125dd642ae6add4c1300b46a082e52..a30796b132c9503e50aab464f9c77b30529bcc6e 100644 (file)
--- 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;