(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.

This commit is contained in:
rubidium
2009-02-09 01:06:23 +00:00
parent 7b8c13fa5c
commit 9907742a0f
19 changed files with 229 additions and 181 deletions

View File

@@ -37,7 +37,7 @@
CompanyByte _local_company;
CompanyByte _current_company;
/* NOSAVE: can be determined from company structs */
byte _company_colours[MAX_COMPANIES];
Colours _company_colours[MAX_COMPANIES];
CompanyManagerFace _company_manager_face; ///< for company manager face storage in openttd.cfg
DEFINE_OLD_POOL_GENERIC(Company, Company)
@@ -434,7 +434,7 @@ Company *DoStartupNewCompany(bool is_ai)
c->colour = colour;
ResetCompanyLivery(c);
_company_colours[c->index] = c->colour;
_company_colours[c->index] = (Colours)c->colour;
c->money = c->current_loan = 100000;