mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Movement: Use spline id generator for movement packets
This commit is contained in:
@@ -125,6 +125,7 @@ namespace Movement
|
||||
|
||||
MoveSplineInit::MoveSplineInit(Unit* m) : unit(m)
|
||||
{
|
||||
args.splineId = splineIdGen.NewId();
|
||||
// Elevators also use MOVEMENTFLAG_ONTRANSPORT but we do not keep track of their position changes
|
||||
args.TransformForTransport = unit->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && unit->GetTransGUID();
|
||||
// mix existing state into new
|
||||
|
||||
@@ -76,6 +76,7 @@ namespace Movement
|
||||
|
||||
extern double gravity;
|
||||
extern float computeFallElevation(float t_passed, bool isSafeFall, float start_velocity);
|
||||
extern UInt32Counter splineIdGen;
|
||||
}
|
||||
|
||||
#endif // TRINITYSERVER_TYPEDEFS_H
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
namespace Movement
|
||||
{
|
||||
double gravity = 19.29110527038574;
|
||||
UInt32Counter splineIdGen;
|
||||
|
||||
/// Velocity bounds that makes fall speed limited
|
||||
float terminalVelocity = 60.148003f;
|
||||
|
||||
Reference in New Issue
Block a user