summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-08-11 19:23:32 +0000
committertruelight <truelight@openttd.org>2005-08-11 19:23:32 +0000
commit732acc8eaddadcb87ec8ee3701bfb861d5ba1579 (patch)
tree68420317a5529bde292700edfbd705059bbfad5a /smallmap_gui.c
parent235d84583f6424f077f42ff52d81dafa3921af2f (diff)
downloadopenttd-732acc8eaddadcb87ec8ee3701bfb861d5ba1579.tar.xz
(svn r2858) -Codechange: resolved some magic numbers (_Luca_)
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index c7b181bd4..e9cebcb62 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -610,9 +610,9 @@ static void DrawSmallMap(DrawPixelInfo *dpi, Window *w, int type, bool show_town
memset(&_owner_colors[128], 0xB4, 128 * sizeof(*_owner_colors));
/* fill with some special colors */
- _owner_colors[0x10] = MKCOLOR(0x54545454);
- _owner_colors[0x11] = MKCOLOR(0xCACACACA);
- _owner_colors[0xff] = MKCOLOR(0x20202020); /* industry */
+ _owner_colors[OWNER_NONE] = MKCOLOR(0x54545454);
+ _owner_colors[OWNER_WATER] = MKCOLOR(0xCACACACA);
+ _owner_colors[OWNER_SPECTATOR] = MKCOLOR(0x20202020); /* industry */
/* now fill with the player colors */
FOR_ALL_PLAYERS(p) {