Codechange: Remove Company/OwnerByte types
This commit is contained in:
@@ -1835,7 +1835,7 @@ bool AfterLoadGame()
|
||||
if (IsBuoyTile(t) || IsDriveThroughStopTile(t) || IsTileType(t, MP_WATER)) {
|
||||
Owner o = GetTileOwner(t);
|
||||
if (o < MAX_COMPANIES && !Company::IsValidID(o)) {
|
||||
Backup<CompanyByte> cur_company(_current_company, o, FILE_LINE);
|
||||
Backup<CompanyID> cur_company(_current_company, o, FILE_LINE);
|
||||
ChangeTileOwner(t, o, INVALID_OWNER);
|
||||
cur_company.Restore();
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ struct OldWaypoint {
|
||||
uint8 localidx;
|
||||
uint32 grfid;
|
||||
const StationSpec *spec;
|
||||
OwnerByte owner;
|
||||
Owner owner;
|
||||
|
||||
size_t new_index;
|
||||
};
|
||||
|
Reference in New Issue
Block a user