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 | 3b798599b63067c2e92aa49906ea66a07ae8de44 (patch) | |
tree | 69fb7ae1d9bdadb9e7386cb70b0a26621ad9b57f /src/newgrf_industries.cpp | |
parent | cc1e761edab14f8264dba44d09f7272d931bdd93 (diff) | |
download | openttd-3b798599b63067c2e92aa49906ea66a07ae8de44.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/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 55c8da417..d7fd441ae 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -267,16 +267,16 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par /* Layout number */ case 0x44: return industry->selected_layout; - /* player info */ + /* Company info */ case 0x45: { byte colours; bool is_ai = false; - if (IsValidPlayerID(industry->founder)) { - const Player *p = GetPlayer(industry->founder); - const Livery *l = &p->livery[LS_DEFAULT]; + if (IsValidCompanyID(industry->founder)) { + const Company *c = GetCompany(industry->founder); + const Livery *l = &c->livery[LS_DEFAULT]; - is_ai = p->is_ai; + is_ai = c->is_ai; colours = l->colour1 + l->colour2 * 16; } else { colours = GB(Random(), 0, 8); |