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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user