On load, use previous local company or first usable company
Instead of always using the first company slot
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user