From 398418b8fa23ab59f5fc027a7dd6aeba9da4d7bb Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 13 May 2010 09:44:44 +0000 Subject: (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int --- src/table/palettes.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/table/palettes.h') diff --git a/src/table/palettes.h b/src/table/palettes.h index 5ab88df69..68f74377f 100644 --- a/src/table/palettes.h +++ b/src/table/palettes.h @@ -154,13 +154,11 @@ static const Colour _palettes[][256] = { #define GET_PALETTE(x) _palettes[x] /** Description of the length of the palette cycle animations */ -enum { - EPV_CYCLES_DARK_WATER = 5, ///< length of the dark blue water animation - EPV_CYCLES_LIGHTHOUSE = 4, ///< length of the lighthouse/stadium animation - EPV_CYCLES_OIL_REFINERY = 7, ///< length of the oil refinery's fire animation - EPV_CYCLES_FIZZY_DRINK = 5, ///< length of the fizzy drinks animation - EPV_CYCLES_GLITTER_WATER = 15, ///< length of the glittery water animation -}; +static const uint EPV_CYCLES_DARK_WATER = 5; ///< length of the dark blue water animation +static const uint EPV_CYCLES_LIGHTHOUSE = 4; ///< length of the lighthouse/stadium animation +static const uint EPV_CYCLES_OIL_REFINERY = 7; ///< length of the oil refinery's fire animation +static const uint EPV_CYCLES_FIZZY_DRINK = 5; ///< length of the fizzy drinks animation +static const uint EPV_CYCLES_GLITTER_WATER = 15; ///< length of the glittery water animation /** Description of tables for the palette animation */ struct ExtraPaletteValues { -- cgit v1.2.3-54-g00ecf