]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
modified Mod_ValidateElements to fix broken elements rather than crashing later
[xonotic/darkplaces.git] / console.c
index dca8f08a571023540188fa3722b4fea564e1a1bc..b99f7c4b02b0f8a6dde2dba2959d7d873ec668fe 100644 (file)
--- a/console.c
+++ b/console.c
@@ -780,7 +780,7 @@ void Con_DrawNotify (void)
                        sprintf(temptext, "say_team:%s%c", chat_buffer, (int) 10+((int)(realtime*con_cursorspeed)&1));
                else
                        sprintf(temptext, "say:%s%c", chat_buffer, (int) 10+((int)(realtime*con_cursorspeed)&1));
-               while (strlen(temptext) >= (size_t) con_linewidth)
+               while ((int)strlen(temptext) >= con_linewidth)
                {
                        DrawQ_ColoredString( 0, v, temptext, con_linewidth, 8, 8, 1.0, 1.0, 1.0, 1.0, 0, &colorindex );
                        strcpy(temptext, &temptext[con_linewidth]);