(svn r14016) -Codechange: Remove some magical numbers
This commit is contained in:
@@ -191,7 +191,7 @@ enum Colours {
|
||||
COLOUR_GREY,
|
||||
COLOUR_WHITE,
|
||||
COLOUR_END,
|
||||
INVALID_COLOUR = 0xFF
|
||||
INVALID_COLOUR = 0xFF,
|
||||
};
|
||||
|
||||
/** Colour of the strings, see _string_colormap in table/palettes.h or docs/ottd-colourtext-palette.png */
|
||||
@@ -216,6 +216,13 @@ enum TextColour {
|
||||
TC_BLACK = 0x10,
|
||||
};
|
||||
|
||||
/** Defines a few values that are related to animations using palette changes */
|
||||
enum PaletteAnimationSizes {
|
||||
PALETTE_ANIM_SIZE_WIN = 28, ///< number of animated colours in Windows palette
|
||||
PALETTE_ANIM_SIZE_DOS = 38, ///< number of animated colours in DOS palette
|
||||
PALETTE_ANIM_SIZE_START = 217, ///< Index in the _palettes array from which all animations are taking places (table/palettes.h)
|
||||
};
|
||||
|
||||
enum StringColorFlags {
|
||||
IS_PALETTE_COLOR = 0x100, ///< color value is already a real palette color index, not an index of a StringColor
|
||||
};
|
||||
|
Reference in New Issue
Block a user