Mercurial > hg > openttd
changeset 4959:e48a8345528b draft
(svn r6958) -Fix (r6956): GCC warning (thx Tron) and a coding style forgotten in r6957
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Fri, 27 Oct 2006 11:17:38 +0000 |
parents | 1298c13d9fcb |
children | 332b6729aa40 |
files | texteff.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/texteff.c +++ b/texteff.c @@ -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;