From c9356190b7891deb7878bc30064eaf1c81857c2c Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 6 Sep 2020 19:44:47 +0200 Subject: Core/Scripts: Remove now-unused WaypointPathStarted hook. WaypointStarted does everything it used to do, anyway. b3694bf follow-up. --- src/server/game/AI/SmartScripts/SmartAI.cpp | 6 ------ src/server/game/AI/SmartScripts/SmartAI.h | 1 - 2 files changed, 7 deletions(-) (limited to 'src/server/game/AI/SmartScripts') diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index d1553c1e532..4de78fd094a 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -340,12 +340,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 b475513352c..b9a66bc9d64 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -65,7 +65,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; -- cgit v1.2.3