From f6939d6c4dbebf1fe0f28a38e6d8cb454f5e674a Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 9 Sep 2023 16:38:59 +0100 Subject: [PATCH] Codechange: Make INVALID_TE_ID a TextEffectID instead of a TextEffectMode. Type-correctness? --- src/texteff.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/texteff.hpp b/src/texteff.hpp index f5b0e3aa10..5f5010c55c 100644 --- a/src/texteff.hpp +++ b/src/texteff.hpp @@ -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);