evtl fix km stand
This commit is contained in:
@@ -755,7 +755,11 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
}
|
}
|
||||||
|
|
||||||
double distance = lastPosition.DistanceTo(v.Position) / 1000.0;
|
double distance = lastPosition.DistanceTo(v.Position) / 1000.0;
|
||||||
if (distance > 0.2) return;
|
if (distance > 0.2)
|
||||||
|
{
|
||||||
|
lastPositions[v.Handle] = lastPosition;
|
||||||
|
return;
|
||||||
|
}
|
||||||
distanceDriven += distance;
|
distanceDriven += distance;
|
||||||
|
|
||||||
v.SetSharedData("drivenDistance", (float)distanceDriven);
|
v.SetSharedData("drivenDistance", (float)distanceDriven);
|
||||||
@@ -879,7 +883,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
await Task.Delay(2000);
|
await Task.Delay(2000);
|
||||||
newVeh.Repair();
|
newVeh.Repair();
|
||||||
newVeh.Rotation = new Vector3(0, 0, serverVehicle.Heading);
|
newVeh.Rotation = new Vector3(0, 0, serverVehicle.Heading);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user