Codechange: Reorder some high-use structs to reduce their size. (#11201)
This reduces GoodsEntry from 144 to 136 bytes (thereby reducing Station from 9704 bytes to 9192 bytes), and CargoPacket from 40 bytes to 32 bytes.
(cherry picked from commit bd150df914
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
d17c949c22
commit
186a082613
@@ -121,9 +121,9 @@ CargoPacket::CargoPacket(StationID source, TileIndex source_xy, uint16 count, So
|
||||
count(count),
|
||||
days_in_transit(0),
|
||||
feeder_share(0),
|
||||
source_id(source_id),
|
||||
source_xy(source_xy),
|
||||
loaded_at_xy(0),
|
||||
source_id(source_id),
|
||||
source(source),
|
||||
source_type(source_type)
|
||||
{
|
||||
@@ -148,9 +148,9 @@ CargoPacket::CargoPacket(uint16 count, uint16 days_in_transit, StationID source,
|
||||
count(count),
|
||||
days_in_transit(days_in_transit),
|
||||
feeder_share(feeder_share),
|
||||
source_id(source_id),
|
||||
source_xy(source_xy),
|
||||
loaded_at_xy(loaded_at_xy),
|
||||
source_id(source_id),
|
||||
source(source),
|
||||
source_type(source_type)
|
||||
{
|
||||
|
Reference in New Issue
Block a user