1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

Codechange: Reduce size of TextEffectMode and TextEffectID.

TextEffectID was promoted to size_t in #9235, when it was used in loops.
However since then the relevant code uses range-for or iterators instead.
This commit is contained in:
2023-09-09 16:40:59 +01:00
committed by PeterN
parent f6939d6c4d
commit f3b4f9d640

View File

@@ -17,12 +17,12 @@
/**
* Text effect modes.
*/
enum TextEffectMode {
enum TextEffectMode : uint8_t {
TE_RISING, ///< Make the text effect slowly go upwards
TE_STATIC, ///< Keep the text effect static
};
typedef size_t TextEffectID;
using TextEffectID = uint16_t;
static const TextEffectID INVALID_TE_ID = UINT16_MAX;