From 9c1e675590c1fa61a80b3f2c856aaf97c549f202 Mon Sep 17 00:00:00 2001 From: Treeston Date: Mon, 1 Jan 2018 17:22:29 +0100 Subject: Core/AI: UnitAI.h trimming part two. WaypointX methods kicked upstairs to CreatureAI.h. --- src/server/game/AI/SmartScripts/SmartAI.cpp | 5 +++-- src/server/game/AI/SmartScripts/SmartAI.h | 2 +- 2 files changed, 4 insertions(+), 3 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 8b12c40ccb2..2b815b677a3 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -340,11 +340,12 @@ bool SmartAI::IsEscortInvokerInRange() } ///@todo move escort related logic -void SmartAI::WaypointPathStarted(uint32 nodeId, uint32 pathId) +void SmartAI::WaypointPathStarted(uint32 pathId) { if (!HasEscortState(SMART_ESCORT_ESCORTING)) { - GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_START, nullptr, nodeId, pathId); + // @todo remove the constant 1 at some point, it's never anything different + GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_START, nullptr, 1, pathId); return; } } diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index 20f607d476f..35b7d534e19 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -68,7 +68,7 @@ class TC_GAME_API SmartAI : public CreatureAI void StopFollow(bool complete); bool IsEscortInvokerInRange(); - void WaypointPathStarted(uint32 nodeId, uint32 pathId) override; + 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