mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +00:00
Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode.
Type-correctness?
This commit is contained in:
parent
3c61c642a9
commit
f6939d6c4d
@ -20,12 +20,12 @@
|
||||
enum TextEffectMode {
|
||||
TE_RISING, ///< Make the text effect slowly go upwards
|
||||
TE_STATIC, ///< Keep the text effect static
|
||||
|
||||
INVALID_TE_ID = 0xFFFF,
|
||||
};
|
||||
|
||||
typedef size_t TextEffectID;
|
||||
|
||||
static const TextEffectID INVALID_TE_ID = UINT16_MAX;
|
||||
|
||||
TextEffectID AddTextEffect(StringID msg, int x, int y, uint8_t duration, TextEffectMode mode);
|
||||
void InitTextEffects();
|
||||
void DrawTextEffects(DrawPixelInfo *dpi);
|
||||
|
Loading…
Reference in New Issue
Block a user