Changeset - r27913:2cb1252ef72a
[Not reviewed]
master
0 1 0
Peter Nelson - 15 months ago 2023-09-11 23:40:49
peter1138@openttd.org
Codechange: Shuffle Depot members to reduce padding.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/depot_base.h
Show inline comments
 
@@ -18,11 +18,11 @@ typedef Pool<Depot, DepotID, 64, 64000> 
 
extern DepotPool _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;
 
	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
 

	
 
	Depot(TileIndex xy = INVALID_TILE) : xy(xy) {}
0 comments (0 inline, 0 general)