On load, use previous local company or first usable company

Instead of always using the first company slot
This commit is contained in:
Jonathan G Rennison
2020-09-20 17:36:36 +01:00
parent 9af2c258fa
commit 4763f441f6
8 changed files with 46 additions and 6 deletions

View File

@@ -32,6 +32,7 @@ CommandCost CheckTileOwnership(TileIndex tile);
extern CompanyID _local_company;
extern CompanyID _current_company;
extern CompanyID _loaded_local_company;
extern Colours _company_colours[MAX_COMPANIES];
extern CompanyManagerFace _company_manager_face;
@@ -57,4 +58,6 @@ static inline bool IsInteractiveCompany(CompanyID company)
int CompanyServiceInterval(const Company *c, VehicleType type);
CompanyID GetDefaultLocalCompany();
#endif /* COMPANY_FUNC_H */