Skip to content

Commit d25e200

Browse files
committed
review
1 parent 5a8d353 commit d25e200

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4345,12 +4345,11 @@ bool CLuaVehicleDefs::SpawnVehicleFlyingComponent(CClientVehicle* const vehicle,
43454345

43464346
bool CLuaVehicleDefs::SetSmokeTrailEnabled(CClientVehicle* vehicle, bool state) noexcept
43474347
{
4348-
if (vehicle->GetModel() == 512 || vehicle->GetModel() == 513) // Support Cropduster and Stuntplane
4349-
{
4350-
vehicle->SetSmokeTrailEnabled(state);
4351-
return true;
4352-
}
4348+
auto model = vehicle->GetModel();
4349+
if (model != 512 && model != 513)
43534350
return false;
4351+
vehicle->SetSmokeTrailEnabled(state);
4352+
return true;
43544353
}
43554354

43564355
bool CLuaVehicleDefs::IsSmokeTrailEnabled(CClientVehicle* vehicle) noexcept

0 commit comments

Comments
 (0)