[11911] Use mmaps for Spline Movement

This commit is contained in:
sixsixnine 2012-01-29 23:45:21 +01:00 committed by Schmoozerd
parent df3a5f2808
commit e738c27714
8 changed files with 55 additions and 25 deletions

View file

@ -10522,10 +10522,10 @@ void Unit::NearTeleportTo( float x, float y, float z, float orientation, bool ca
}
}
void Unit::MonsterMoveWithSpeed(float x, float y, float z, float speed)
void Unit::MonsterMoveWithSpeed(float x, float y, float z, float speed, bool generatePath, bool forceDestination)
{
Movement::MoveSplineInit init(*this);
init.MoveTo(x,y,z);
init.MoveTo(x,y,z, generatePath, forceDestination);
init.SetVelocity(speed);
init.Launch();
}