diff options
author | rubidium <rubidium@openttd.org> | 2008-04-24 11:11:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-24 11:11:50 +0000 |
commit | 26cea31b1e7803acb2aa059e302fef8bef35e658 (patch) | |
tree | 7f85b4155b83c57c8d2e722bbb988003f7bf8ca0 /src/gfx_type.h | |
parent | 26206fa11682313e8cbe2f19441c5dbdce63ef74 (diff) | |
download | openttd-26cea31b1e7803acb2aa059e302fef8bef35e658.tar.xz |
(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index e0e3a30c5..c65e69fad 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -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 */ |