(svn r6958) -Fix (r6956): GCC warning (thx Tron) and a coding style forgotten in r6957
authorDarkvater
Fri, 27 Oct 2006 11:17:38 +0000
changeset 4959 828f9223446d
parent 4958 aaa8a92059bf
child 4960 cb06aa866acb
(svn r6958) -Fix (r6956): GCC warning (thx Tron) and a coding style forgotten in r6957
texteff.c
--- a/texteff.c	Fri Oct 27 11:09:24 2006 +0000
+++ b/texteff.c	Fri Oct 27 11:17:38 2006 +0000
@@ -52,9 +52,9 @@
 
 static inline uint GetTextMessageCount(void)
 {
-	uint i = 0;
+	uint i;
 
-	for (i; i < MAX_CHAT_MESSAGES; i++) {
+	for (i = 0; i < MAX_CHAT_MESSAGES; i++) {
 		if (_textmsg_list[i].message[0] == '\0') break;
 	}
 
@@ -185,8 +185,7 @@
 	// First undraw if needed
 	UndrawTextMessage();
 
-	if (_iconsole_mode == ICONSOLE_FULL)
-		return;
+	if (_iconsole_mode == ICONSOLE_FULL) return;
 
 	/* Check if we have anything to draw at all */
 	has_message = false;