summaryrefslogtreecommitdiff
path: root/texteff.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-28 21:49:55 +0000
committertron <tron@openttd.org>2005-09-28 21:49:55 +0000
commita3703eafb55f4b30be8920fdc775735e2c850ccb (patch)
tree6629bf3a567cab920e973fca3410c46386bd8a11 /texteff.c
parent90e33aed225cf00a75185d731cad5ce1c3520559 (diff)
downloadopenttd-a3703eafb55f4b30be8920fdc775735e2c850ccb.tar.xz
(svn r2996) 0xFFFF -> INVALID_STRING_ID
Diffstat (limited to 'texteff.c')
-rw-r--r--texteff.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/texteff.c b/texteff.c
index 09fa87228..02428527c 100644
--- a/texteff.c
+++ b/texteff.c
@@ -236,7 +236,7 @@ void AddTextEffect(StringID msg, int x, int y, uint16 duration)
if (_game_mode == GM_MENU)
return;
- for (te = _text_effect_list; te->string_id != 0xFFFF; ) {
+ for (te = _text_effect_list; te->string_id != INVALID_STRING_ID; ) {
if (++te == endof(_text_effect_list))
return;
}
@@ -259,7 +259,7 @@ void AddTextEffect(StringID msg, int x, int y, uint16 duration)
static void MoveTextEffect(TextEffect *te)
{
if (te->duration < 8) {
- te->string_id = 0xFFFF;
+ te->string_id = INVALID_STRING_ID;
} else {
te->duration-=8;
te->y--;
@@ -273,7 +273,7 @@ void MoveAllTextEffects(void)
TextEffect *te;
for (te = _text_effect_list; te != endof(_text_effect_list); te++ ) {
- if (te->string_id != 0xFFFF)
+ if (te->string_id != INVALID_STRING_ID)
MoveTextEffect(te);
}
}
@@ -283,7 +283,7 @@ void InitTextEffects(void)
TextEffect *te;
for (te = _text_effect_list; te != endof(_text_effect_list); te++ ) {
- te->string_id = 0xFFFF;
+ te->string_id = INVALID_STRING_ID;
}
}
@@ -293,7 +293,7 @@ void DrawTextEffects(DrawPixelInfo *dpi)
if (dpi->zoom < 1) {
for (te = _text_effect_list; te != endof(_text_effect_list); te++ ) {
- if (te->string_id == 0xFFFF)
+ if (te->string_id == INVALID_STRING_ID)
continue;
/* intersection? */
@@ -306,7 +306,7 @@ void DrawTextEffects(DrawPixelInfo *dpi)
}
} else if (dpi->zoom == 1) {
for (te = _text_effect_list; te != endof(_text_effect_list); te++ ) {
- if (te->string_id == 0xFFFF)
+ if (te->string_id == INVALID_STRING_ID)
continue;
/* intersection? */