Changeset - r27880:b7b75d479ece
[Not reviewed]
master
0 1 0
Peter Nelson - 8 months ago 2023-09-09 15:40:59
peter1138@openttd.org
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.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/texteff.hpp
Show inline comments
 
@@ -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;
 

	
0 comments (0 inline, 0 general)