mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Shuffle Depot members to reduce padding.
This commit is contained in:
parent
2fdc22e7ea
commit
a0353af223
|
@ -18,11 +18,11 @@ typedef Pool<Depot, DepotID, 64, 64000> DepotPool;
|
||||||
extern DepotPool _depot_pool;
|
extern DepotPool _depot_pool;
|
||||||
|
|
||||||
struct Depot : DepotPool::PoolItem<&_depot_pool> {
|
struct Depot : DepotPool::PoolItem<&_depot_pool> {
|
||||||
|
/* DepotID index member of DepotPool is 2 bytes. */
|
||||||
|
uint16_t town_cn; ///< The N-1th depot for this town (consecutive number)
|
||||||
|
TileIndex xy;
|
||||||
Town *town;
|
Town *town;
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
||||||
TileIndex xy;
|
|
||||||
uint16_t town_cn; ///< The N-1th depot for this town (consecutive number)
|
|
||||||
TimerGameCalendar::Date build_date; ///< Date of construction
|
TimerGameCalendar::Date build_date; ///< Date of construction
|
||||||
|
|
||||||
Depot(TileIndex xy = INVALID_TILE) : xy(xy) {}
|
Depot(TileIndex xy = INVALID_TILE) : xy(xy) {}
|
||||||
|
|
Loading…
Reference in New Issue