]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
changed lhrandom to use the full RAND_MAX limit (more random, after all the low bits...
[xonotic/darkplaces.git] / console.c
index 8020de1baaab8863f89136e2c2239f18ab5a2a0f..d49bcd6a32e0129e588e6877a404ab691219df0f 100644 (file)
--- a/console.c
+++ b/console.c
@@ -201,6 +201,11 @@ Log_ConPrint
 */
 void Log_ConPrint (const char *msg)
 {
+       static qboolean inprogress = false;
+       // don't allow feedback loops with memory error reports
+       if (inprogress)
+               return;
+       inprogress = true;
        // Until the host is completely initialized, we maintain a log queue
        // to store the messages, since the log can't be started before
        if (logqueue != NULL)
@@ -224,6 +229,7 @@ void Log_ConPrint (const char *msg)
                memcpy (&logqueue[logq_ind], msg, len);
                logq_ind += len;
 
+               inprogress = false;
                return;
        }
 
@@ -241,6 +247,7 @@ void Log_ConPrint (const char *msg)
                if (log_sync.integer)
                        FS_Flush (logfile);
        }
+       inprogress = false;
 }
 
 
@@ -473,7 +480,7 @@ void Con_PrintToHistory(const char *txt)
        if (txt[0] == 1)
        {
                mask = 128;             // go to colored text
-               S_LocalSound ("misc/talk.wav", true);
+               S_LocalSound ("sound/misc/talk.wav");
        // play talk wav
                txt++;
        }
@@ -755,8 +762,6 @@ void Con_DrawNotify (void)
                        continue;
                text = con_text + (i % con_totallines)*con_linewidth;
 
-               clearnotify = 0;
-
                DrawQ_String(0, v, text, con_linewidth, 8, 8, 1, 1, 1, 1, 0);
 
                v += 8;
@@ -765,8 +770,6 @@ void Con_DrawNotify (void)
 
        if (key_dest == key_message)
        {
-               clearnotify = 0;
-
                x = 0;
 
                // LordHavoc: speedup, and other improvements