Reduce the size of VehicleSpriteSeq (and Vehicle) in dedicated builds

pull/642/head
Jonathan G Rennison 4 months ago
parent 39951c526b
commit 3017660e5d

@ -160,7 +160,12 @@ struct VehicleCache {
/** Sprite sequence for a vehicle part. */
struct VehicleSpriteSeq {
/* Reduce the size of struct Vehicle in dedicated builds */
#if defined(DEDICATED)
PalSpriteID seq[1];
#else
PalSpriteID seq[8];
#endif
uint count;
bool operator==(const VehicleSpriteSeq &other) const

Loading…
Cancel
Save