diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-11-10 19:55:29 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-11-10 19:55:29 +0100 |
| commit | c24dcf62acd80519360943f606cfc0986a0507f1 (patch) | |
| tree | 2d31f565fd16853967a6df8aca533b7b9da419b7 /src/server/scripts/EasternKingdoms | |
| parent | ff662f4d0738733af1541c23f2c8ace0f7672218 (diff) | |
Core/Movement: Use std::span argument instead of std::vector in MoveSplineInit::MovebyPath to avoid having to construct temporary containers
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index ccd5dbe4b7d..5e2fd5062f2 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -429,8 +429,7 @@ enum EyeOfAcherusMisc POINT_NEW_AVALON = 1 }; -static constexpr uint8 const EyeOfAcherusPathSize = 4; -G3D::Vector3 const EyeOfAcherusPath[EyeOfAcherusPathSize] = +G3D::Vector3 const EyeOfAcherusPath[] = { { 2361.21f, -5660.45f, 496.744f }, { 2341.571f, -5672.797f, 538.3942f }, @@ -486,8 +485,7 @@ struct npc_eye_of_acherus : public ScriptedAI { std::function<void(Movement::MoveSplineInit&)> initializer = [=, me = me](Movement::MoveSplineInit& init) { - Movement::PointsArray path(EyeOfAcherusPath, EyeOfAcherusPath + EyeOfAcherusPathSize); - init.MovebyPath(path); + init.MovebyPath(EyeOfAcherusPath); init.SetFly(); if (Unit* owner = me->GetCharmerOrOwner()) init.SetVelocity(owner->GetSpeed(MOVE_RUN)); |
