Fix traffic

This commit is contained in:
sardelka9515
2022-08-22 10:01:09 +08:00
parent 363c2ccb00
commit c034cd8aa9
7 changed files with 15 additions and 39 deletions

View File

@ -450,7 +450,7 @@ namespace RageCoop.Client
{
if (!VehiclesByHandle.ContainsKey(veh.Handle))
{
if (allVehicles.Length>Main.Settings.WorldVehicleSoftLimit || World.GetNearbyVehicles(veh.Position,2).Length>0)
if (allVehicles.Length>Main.Settings.WorldVehicleSoftLimit)
{
var type = veh.PopulationType;
if (type==EntityPopulationType.RandomAmbient || type==EntityPopulationType.RandomParked)