Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
This is accomplished by changing it to a single member struct with the appropriate operator overloads to make it all work with not too much source modifications.
This commit is contained in:
@@ -27,7 +27,7 @@ void UpdateLandscapingLimits();
|
||||
bool CheckCompanyHasMoney(CommandCost &cost);
|
||||
void SubtractMoneyFromCompany(const CommandCost& cost);
|
||||
void SubtractMoneyFromCompanyFract(CompanyID company, const CommandCost& cost);
|
||||
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0);
|
||||
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0U);
|
||||
CommandCost CheckTileOwnership(TileIndex tile);
|
||||
|
||||
extern CompanyID _local_company;
|
||||
|
||||
Reference in New Issue
Block a user