Some Cleanups

This commit is contained in:
hondacrx
2021-06-07 18:06:16 -04:00
parent cb7640e3c6
commit 302a1f293c
53 changed files with 382 additions and 477 deletions
+3 -3
View File
@@ -113,7 +113,7 @@ namespace Game.Movement
{
int point = point_Idx_offset + point_Idx - spline.First() + (Finalized() ? 1 : 0);
if (IsCyclic())
point = point % (spline.Last() - spline.First());
point %= (spline.Last() - spline.First());
return point;
}
@@ -164,7 +164,7 @@ namespace Game.Movement
}
if (splineflags.HasFlag(SplineFlag.Backward))
orientation = orientation - (float)Math.PI;
orientation -= (float)Math.PI;
}
return new Vector4(c.X, c.Y, c.Z, orientation);
@@ -274,7 +274,7 @@ namespace Game.Movement
if (spline.IsCyclic())
{
point_Idx = spline.First();
time_passed = time_passed % Duration();
time_passed %= Duration();
result = UpdateResult.NextCycle;
}
else