Skip to content

Commit 1e04144

Browse files
committed
Fixes
1 parent 48c0ecc commit 1e04144

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Client/mods/deathmatch/logic/CPacketHandler.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,6 +3448,13 @@ void CPacketHandler::Packet_EntityAdd(NetBitStreamInterface& bitStream)
34483448
bool bIsDerailable = bitStream.ReadBit();
34493449
bool bTrainDirection = bitStream.ReadBit();
34503450
bool bTaxiLightState = bitStream.ReadBit();
3451+
bool bSmokeTrailEnabled = bitStream.ReadBit();
3452+
3453+
// Set smoke trail for appropriate vehicles
3454+
if (usModel == 512 || usModel == 513)
3455+
{
3456+
pVehicle->SetSmokeTrailEnabled(bSmokeTrailEnabled);
3457+
}
34513458

34523459
// If the vehicle has a landing gear, set landing gear state
34533460
if (CClientVehicleManager::HasLandingGears(usModel))

Server/mods/deathmatch/logic/packets/CEntityAddPacket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ bool CEntityAddPacket::Write(NetBitStreamInterface& BitStream) const
577577
BitStream.WriteBit(pVehicle->IsDerailable());
578578
BitStream.WriteBit(pVehicle->GetTrainDirection());
579579
BitStream.WriteBit(pVehicle->IsTaxiLightOn());
580+
BitStream.WriteBit(pVehicle->IsSmokeTrailEnabled());
580581

581582
// Write alpha
582583
SEntityAlphaSync alpha;

0 commit comments

Comments
 (0)