Use tuple to store vehicle colors
Array allocation is somewhat expensive
This commit is contained in:
@ -126,7 +126,7 @@ namespace RageCoop.Client
|
||||
}
|
||||
|
||||
packet.Flags |= VehicleDataFlags.IsFullSync;
|
||||
packet.Colors = new[] { primaryColor, secondaryColor };
|
||||
packet.Colors = (primaryColor, secondaryColor);
|
||||
packet.DamageModel = veh.GetVehicleDamageModel();
|
||||
packet.LandingGear = veh.IsAircraft ? (byte)veh.LandingGearState : (byte)0;
|
||||
packet.RoofState = (byte)veh.RoofState;
|
||||
|
Reference in New Issue
Block a user