Forgot to change updater to look for newest full DBs
This commit is contained in:
@@ -51,10 +51,10 @@ namespace Framework.Database
|
||||
fileName = @"/sql/base/characters_database.sql";
|
||||
break;
|
||||
case "WorldDatabase":
|
||||
fileName = @"/sql/TDB_full_world_920.22031_2022_03_06.sql";
|
||||
fileName = @"/sql/TDB_full_world_925.22071_2022_07_25.sql";
|
||||
break;
|
||||
case "HotfixDatabase":
|
||||
fileName = @"/sql/TDB_full_hotfixes_920.22031_2022_03_06.sql";
|
||||
fileName = @"/sql/TDB_full_hotfixes_925.22071_2022_07_25.sql";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ namespace System
|
||||
else
|
||||
{
|
||||
// WARNING. Not unique. ZA - XA = -atan2(r01,r02)
|
||||
z = -(float)MathF.Atan2(matrix.M12, matrix.M13);
|
||||
z = -MathF.Atan2(matrix.M12, matrix.M13);
|
||||
y = MathFunctions.PiOver2;
|
||||
x = 0.0f;
|
||||
}
|
||||
@@ -291,7 +291,7 @@ namespace System
|
||||
else
|
||||
{
|
||||
// WARNING. Not unique. ZA + XA = atan2(-r01,-r02)
|
||||
z = (float)MathF.Atan2(-matrix.M12, -matrix.M13);
|
||||
z = MathF.Atan2(-matrix.M12, -matrix.M13);
|
||||
y = -MathFunctions.PiOver2;
|
||||
x = 0.0f;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace Game.Movement
|
||||
if (facing.type == MonsterMoveType.FacingAngle)
|
||||
orientation = facing.angle;
|
||||
else if (facing.type == MonsterMoveType.FacingSpot)
|
||||
orientation = (float)Math.Atan2(facing.f.Y - c.Y, facing.f.X - c.X);
|
||||
orientation = MathF.Atan2(facing.f.Y - c.Y, facing.f.X - c.X);
|
||||
//nothing to do for MoveSplineFlag.Final_Target flag
|
||||
}
|
||||
else
|
||||
@@ -172,11 +172,11 @@ namespace Game.Movement
|
||||
{
|
||||
Vector3 hermite;
|
||||
spline.Evaluate_Derivative(point_Idx, u, out hermite);
|
||||
orientation = (float)MathF.Atan2(hermite.Y, hermite.X);
|
||||
orientation = MathF.Atan2(hermite.Y, hermite.X);
|
||||
}
|
||||
|
||||
if (splineflags.HasFlag(SplineFlag.Backward))
|
||||
orientation -= (float)Math.PI;
|
||||
orientation -= MathF.PI;
|
||||
}
|
||||
|
||||
return new Vector4(c.X, c.Y, c.Z, orientation);
|
||||
|
||||
Reference in New Issue
Block a user