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