(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.

This commit is contained in:
rubidium
2008-09-30 20:39:50 +00:00
parent cc1e761eda
commit 3b798599b6
158 changed files with 4661 additions and 4675 deletions

View File

@@ -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;
}
}