From f56e630e5cb839b307f04bf52465c4db4d1ad904 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 30 Sep 2008 20:39:50 +0000 Subject: (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. --- src/smallmap_gui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/smallmap_gui.cpp') 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; } } -- cgit v1.2.3-54-g00ecf