diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-06 19:44:47 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 13:31:50 +0100 |
commit | fc094509e9df59e055840936ba3389504fba87df (patch) | |
tree | 930edf43db9b8694228d43a21ff99bc1ee71d598 /src | |
parent | c2d2df96dbe8e31e27283f73bad576ab42a3d579 (diff) |
Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway. b3694bf follow-up.
(cherry picked from commit c9356190b7891deb7878bc30064eaf1c81857c2c)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/CreatureAI.h | 1 | ||||
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 6 | ||||
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.h | 1 | ||||
-rw-r--r-- | src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp | 4 |
4 files changed, 0 insertions, 12 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h index 984cbab6da8..bca8f5ed9d0 100644 --- a/src/server/game/AI/CreatureAI.h +++ b/src/server/game/AI/CreatureAI.h @@ -212,7 +212,6 @@ class TC_GAME_API CreatureAI : public UnitAI /// == Waypoints system ============================= - virtual void WaypointPathStarted(uint32 /*pathId*/) { } virtual void WaypointStarted(uint32 /*nodeId*/, uint32 /*pathId*/) { } virtual void WaypointReached(uint32 /*nodeId*/, uint32 /*pathId*/) { } virtual void WaypointPathEnded(uint32 /*nodeId*/, uint32 /*pathId*/) { } diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index e4a4d953535..9ae1c3fcd22 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -342,12 +342,6 @@ bool SmartAI::IsEscortInvokerInRange() return true; } -///@todo move escort related logic -void SmartAI::WaypointPathStarted(uint32 pathId) -{ - // SmartAI::WaypointStarted() already handles the case of starting the 1st waypoint -} - void SmartAI::WaypointStarted(uint32 nodeId, uint32 pathId) { GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_START, nullptr, nodeId, pathId); diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index 7cd0e7d800a..d8949aa6e3e 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -66,7 +66,6 @@ class TC_GAME_API SmartAI : public CreatureAI void StopFollow(bool complete); bool IsEscortInvokerInRange(); - void WaypointPathStarted(uint32 pathId) override; void WaypointStarted(uint32 nodeId, uint32 pathId) override; void WaypointReached(uint32 nodeId, uint32 pathId) override; void WaypointPathEnded(uint32 nodeId, uint32 pathId) override; diff --git a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp index 4278acc1841..c24f207db6e 100644 --- a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp @@ -119,10 +119,6 @@ void WaypointMovementGenerator<Creature>::DoInitialize(Creature* owner) owner->StopMoving(); _nextMoveTime.Reset(1000); - - // inform AI - if (CreatureAI* AI = owner->AI()) - AI->WaypointPathStarted(_path->id); } void WaypointMovementGenerator<Creature>::DoReset(Creature* owner) |