Fixes getting random disconnect.

This commit is contained in:
hondacrx
2022-08-08 18:02:47 -04:00
parent 7a799f4047
commit dacf9b1992
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace Game.Entities
posX = x;
posY = y;
posZ = z;
Orientation = o;
Orientation = NormalizeOrientation(o);
}
public Position(Vector3 vector)
+1 -1
View File
@@ -659,7 +659,7 @@ namespace Game.Entities
void UpdateOrientation(float orientation)
{
Orientation = orientation;
SetOrientation(orientation);
if (IsVehicle())
GetVehicleKit().RelocatePassengers();
}
+1 -1
View File
@@ -172,7 +172,7 @@ namespace Game.Movement
{
Vector3 hermite;
spline.Evaluate_Derivative(point_Idx, u, out hermite);
orientation = (float)Math.Atan2(hermite.Y, hermite.X);
orientation = (float)MathF.Atan2(hermite.Y, hermite.X);
}
if (splineflags.HasFlag(SplineFlag.Backward))