summaryrefslogtreecommitdiff
path: root/src/company_func.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-06 23:11:22 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commitb0990fcff7358e839468e5cf811ffddc8b9d73e2 (patch)
tree08da5cbe48d5dcc46e8c539e0da1aa8f6233bad9 /src/company_func.h
parent4fc055d6e97e76faf53ff3f29e36a4a4549bf6e7 (diff)
downloadopenttd-b0990fcff7358e839468e5cf811ffddc8b9d73e2.tar.xz
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.
Diffstat (limited to 'src/company_func.h')
-rw-r--r--src/company_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_func.h b/src/company_func.h
index 01f585910..97e1e6e82 100644
--- a/src/company_func.h
+++ b/src/company_func.h
@@ -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;