Codechange: Pass TileDesc by reference.
This commit is contained in:
committed by
Peter Nelson
parent
012daaa3d9
commit
96f260e718
@@ -103,7 +103,7 @@ typedef void AddAcceptedCargoProc(TileIndex tile, CargoArray &acceptance, CargoT
|
||||
* @param tile Tile being queried
|
||||
* @param td Storage pointer for returned tile description
|
||||
*/
|
||||
typedef void GetTileDescProc(TileIndex tile, TileDesc *td);
|
||||
typedef void GetTileDescProc(TileIndex tile, TileDesc &td);
|
||||
|
||||
/**
|
||||
* Tile callback function signature for getting the possible tracks
|
||||
@@ -178,7 +178,7 @@ extern const TileTypeProcs * const _tile_type_procs[16];
|
||||
TrackStatus GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side = INVALID_DIAGDIR);
|
||||
VehicleEnterTileStatus VehicleEnterTile(Vehicle *v, TileIndex tile, int x, int y);
|
||||
void ChangeTileOwner(TileIndex tile, Owner old_owner, Owner new_owner);
|
||||
void GetTileDesc(TileIndex tile, TileDesc *td);
|
||||
void GetTileDesc(TileIndex tile, TileDesc &td);
|
||||
|
||||
inline void AddAcceptedCargo(TileIndex tile, CargoArray &acceptance, CargoTypes *always_accepted)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user