aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-01-10 22:51:47 +0100
committerccrs <ccrs@users.noreply.github.com>2019-01-10 22:51:47 +0100
commit9080e7863c28df7dc1c2af321964776e7b59e41a (patch)
tree68d96c61400e23ea2b2883bc811aac3bc670e4bb /src/server/scripts/Commands
parentf2bac5d758cbd2fe3974babfd3a91b0416be09f3 (diff)
Core/Movement: correct logic wrongly ported in 2a84562dc8
I'm referencing line 97 from ChaseMovementGenerator. That commit introduced a modification in this use case: - Chasing target is not my current victim, I should stop moving till it is my victim again Changed To: - Chasing target is not my current vicitm, I should stop chasing My correction: - I dont care about the relation of my current victim and my chasing target, I'm commanded to chase, something will tell me to stop chasing --> Most likely: evade, new attackstart, etc. the rest are just minor changes
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp
index be0d504ff43..b595fb9e3cb 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -2127,8 +2127,8 @@ public:
float x, y, z;
unit->GetMotionMaster()->GetDestination(x, y, z);
- std::vector<MovementGeneratorInformation> list = unit->GetMotionMaster()->GetMovementGeneratorsInformation();
- for (MovementGeneratorInformation info : list)
+ std::vector<MovementGeneratorInformation> const list = unit->GetMotionMaster()->GetMovementGeneratorsInformation();
+ for (MovementGeneratorInformation const& info : list)
{
switch (info.Type)
{