Skip to content

Commit e63f8ac

Browse files
authored
Merge pull request #1140 from NexiusTailer/master
Add trams where they are missed
2 parents dab6886 + 66184e4 commit e63f8ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Server/Components/Vehicles/vehicle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void Vehicle::streamInForPlayer(IPlayer& player)
4141
streamIn.Angle = rot.ToEuler().z;
4242

4343
// Trains should always be streamed with default rotation.
44-
if (spawnData.modelID == 537 || spawnData.modelID == 538)
44+
if (spawnData.modelID == 537 || spawnData.modelID == 538 || spawnData.modelID == 449)
4545
{
4646
streamIn.Angle = spawnData.zRotation;
4747
}

Server/Components/Vehicles/vehicles_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class VehiclesComponent final : public IVehiclesComponent, public CoreEventHandl
390390
{
391391
return nullptr;
392392
}
393-
if (!isStatic && (modelID == 538 || modelID == 537))
393+
if (!isStatic && (modelID == 538 || modelID == 537 || modelID == 449))
394394
{
395395
return nullptr;
396396
}
@@ -547,7 +547,7 @@ class VehiclesComponent final : public IVehiclesComponent, public CoreEventHandl
547547

548548
// Trains shouldn't be respawned.
549549
const int model = vehicle->getModel();
550-
if (model == 537 || model == 538 || model == 569 || model == 570)
550+
if (model == 537 || model == 538 || model == 570 || model == 569 || model == 449)
551551
{
552552
continue;
553553
}

0 commit comments

Comments
 (0)