Skip to content

Commit caf2700

Browse files
authored
don't update unstreamed cars for passengers
but also add a check for train carriages, since they always consider unstreamed
1 parent 83af975 commit caf2700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Source/player_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ struct PlayerPool final : public IPlayerPool, public NetworkEventHandler, public
13921392
IVehicle& vehicle = *lock.entry;
13931393
Player& player = static_cast<Player&>(peer);
13941394

1395-
if (vehicle.isRespawning())
1395+
if (vehicle.isRespawning() || (!vehicle.isStreamedInForPlayer(player) && !vehicle.isTrainCarriage()))
13961396
{
13971397
return false;
13981398
}

0 commit comments

Comments
 (0)