diff options
author | belugas <belugas@openttd.org> | 2006-03-24 18:16:39 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-03-24 18:16:39 +0000 |
commit | 26a5b628656eb0fb134553d14c6c884bc53eacf4 (patch) | |
tree | 0b28a6b60c9227ace9353683266a32927594287b /smallmap_gui.c | |
parent | 74853e619a34f481d141b586a5b2c94fe474b5a0 (diff) | |
download | openttd-26a5b628656eb0fb134553d14c6c884bc53eacf4.tar.xz |
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index baa393d7b..4f8ae49a3 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -615,7 +615,7 @@ static void DrawSmallMap(DrawPixelInfo *dpi, Window *w, int type, bool show_town FOR_ALL_PLAYERS(p) { if (p->is_active) { _owner_colors[p->index] = - dup_byte32(GetNonSprite(775 + p->player_color)[0xCB]); // XXX - magic pixel + dup_byte32(GetNonSprite(PALETTE_RECOLOR_START + p->player_color)[0xCB]); // XXX - magic pixel } } } |