diff options
author | rubidium <rubidium@openttd.org> | 2008-09-30 20:39:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-30 20:39:50 +0000 |
commit | f56e630e5cb839b307f04bf52465c4db4d1ad904 (patch) | |
tree | 69fb7ae1d9bdadb9e7386cb70b0a26621ad9b57f /src/smallmap_gui.cpp | |
parent | dba193d4a54707a19d8f3c2f42a1ac10ff544c5c (diff) | |
download | openttd-f56e630e5cb839b307f04bf52465c4db4d1ad904.tar.xz |
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6343a5d83..7be78da54 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -597,7 +597,7 @@ public: /* setup owner table */ if (this->map_type == SMT_OWNER) { - const Player *p; + const Company *c; /* fill with some special colors */ _owner_colors[OWNER_TOWN] = MKCOLOR(0xB4B4B4B4); @@ -605,10 +605,10 @@ public: _owner_colors[OWNER_WATER] = MKCOLOR(0xCACACACA); _owner_colors[OWNER_END] = MKCOLOR(0x20202020); /* industry */ - /* now fill with the player colors */ - FOR_ALL_PLAYERS(p) { - _owner_colors[p->index] = - _colour_gradient[p->player_color][5] * 0x01010101; + /* now fill with the company colours */ + FOR_ALL_COMPANIES(c) { + _owner_colors[c->index] = + _colour_gradient[c->colour][5] * 0x01010101; } } |