Changeset - r27879:63e746bef734
[Not reviewed]
master
0 1 0
Peter Nelson - 9 months ago 2023-09-09 15:38:59
peter1138@openttd.org
Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode.

Type-correctness?
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/texteff.hpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)