mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r6958) -Fix (r6956): GCC warning (thx Tron) and a coding style forgotten in r6957
This commit is contained in:
parent
6db3e0bf4a
commit
52a7e2135d
@ -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)
|
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;
|
if (_textmsg_list[i].message[0] == '\0') break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,8 +185,7 @@ void DrawTextMessage(void)
|
|||||||
// First undraw if needed
|
// First undraw if needed
|
||||||
UndrawTextMessage();
|
UndrawTextMessage();
|
||||||
|
|
||||||
if (_iconsole_mode == ICONSOLE_FULL)
|
if (_iconsole_mode == ICONSOLE_FULL) return;
|
||||||
return;
|
|
||||||
|
|
||||||
/* Check if we have anything to draw at all */
|
/* Check if we have anything to draw at all */
|
||||||
has_message = false;
|
has_message = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user