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

This commit is contained in:
Jonathan G Rennison
2024-01-24 00:05:42 +00:00
parent 39951c526b
commit 3017660e5d

View File

@@ -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