Codechange: Remove direct access to _colour_gradient.
Access is now through GetColourGradient, which ensures parameters are in range.
This commit is contained in:

committed by
Peter Nelson

parent
56cf89d189
commit
0463d4c198
@@ -11,6 +11,7 @@
|
||||
#define GFX_TYPE_H
|
||||
|
||||
#include "core/endian_type.hpp"
|
||||
#include "core/enum_type.hpp"
|
||||
#include "core/geometry_type.hpp"
|
||||
#include "zoom_type.h"
|
||||
|
||||
@@ -247,6 +248,7 @@ enum Colours : byte {
|
||||
COLOUR_END,
|
||||
INVALID_COLOUR = 0xFF,
|
||||
};
|
||||
DECLARE_POSTFIX_INCREMENT(Colours)
|
||||
DECLARE_ENUM_AS_ADDABLE(Colours)
|
||||
|
||||
/** Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palette.png */
|
||||
|
Reference in New Issue
Block a user