Fix unintended carjacking
This commit is contained in:
parent
0352bfa328
commit
54977c79f1
@ -309,7 +309,20 @@ namespace RageCoop.Client
|
||||
if (V!=null)
|
||||
{
|
||||
var seat = P.GetNearestSeat(V);
|
||||
P.Task.EnterVehicle(V, seat);
|
||||
var p = V.GetPedOnSeat(seat);
|
||||
if (p != null && !p.IsDead)
|
||||
{
|
||||
for(int i = -1; i < V.PassengerCapacity; i++)
|
||||
{
|
||||
seat = (VehicleSeat)i;
|
||||
p = V.GetPedOnSeat(seat);
|
||||
if (p == null || p.IsDead)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
P.Task.EnterVehicle(V, seat,-1,5,EnterVehicleFlags.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ using System.Resources;
|
||||
|
||||
|
||||
// Version informationr(
|
||||
[assembly: AssemblyVersion("1.5.1.31")]
|
||||
[assembly: AssemblyFileVersion("1.5.1.31")]
|
||||
[assembly: AssemblyVersion("1.5.1.36")]
|
||||
[assembly: AssemblyFileVersion("1.5.1.36")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||
|
||||
|
@ -15,7 +15,7 @@ using System.Resources;
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version informationr(
|
||||
[assembly: AssemblyVersion("1.5.1.30")]
|
||||
[assembly: AssemblyFileVersion("1.5.1.30")]
|
||||
[assembly: AssemblyVersion("1.5.1.31")]
|
||||
[assembly: AssemblyFileVersion("1.5.1.31")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user