(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.

This commit is contained in:
rubidium
2008-04-24 11:11:50 +00:00
parent 9fc355fca5
commit 5ac07a2c34
2 changed files with 57 additions and 47 deletions

View File

@@ -164,7 +164,7 @@ struct SubSprite {
int left, top, right, bottom;
};
enum {
enum Colours {
COLOUR_DARK_BLUE,
COLOUR_PALE_GREEN,
COLOUR_PINK,
@@ -180,7 +180,9 @@ enum {
COLOUR_ORANGE,
COLOUR_BROWN,
COLOUR_GREY,
COLOUR_WHITE
COLOUR_WHITE,
COLOUR_END,
INVALID_COLOUR = 0xFF
};
/** Colour of the strings, see _string_colormap in table/palettes.h or docs/ottd-colourtext-palette.png */