diff options
author | Darkvater <Darkvater@openttd.org> | 2006-10-27 11:17:38 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-10-27 11:17:38 +0000 |
commit | 52a7e2135d93b3528105a446ae6b5e392f3fa24c (patch) | |
tree | f27a707d95d038e5744726eae735ad951a90ea6f | |
parent | 6db3e0bf4aa2c69851f8a8ddc7deff888becd5df (diff) | |
download | openttd-52a7e2135d93b3528105a446ae6b5e392f3fa24c.tar.xz |
(svn r6958) -Fix (r6956): GCC warning (thx Tron) and a coding style forgotten in r6957
-rw-r--r-- | texteff.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -52,9 +52,9 @@ extern void memcpy_pitch(void *dst, void *src, int w, int h, int srcpitch, int d 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 @@ void DrawTextMessage(void) // 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; |