Core/Movement: reimplement follow movement (#124)

This commit is contained in:
Ovah authored and GitHub committed 2020-06-26 21:22:21 +02:00
1 parent 120a4cc983
commit b09d6e2330
40 files changed
+605 -416

No files matched your search

+2 -2
View File
@@ -2158,7 +2158,7 @@ public:
break;
case CHASE_MOTION_TYPE:
{
Unit* target = static_cast<ChaseMovementGenerator const*>(movementGenerator)->GetTarget();
Unit const* target = static_cast<ChaseMovementGenerator*>(movementGenerator)->GetTarget();
if (!target)
handler->SendSysMessage(LANG_MOVEGENS_CHASE_NULL);
@@ -2170,7 +2170,7 @@ public:
}
case FOLLOW_MOTION_TYPE:
{
Unit* target = static_cast<FollowMovementGenerator const*>(movementGenerator)->GetTarget();
Unit const* target = static_cast<FollowMovementGenerator*>(movementGenerator)->GetTarget();
if (!target)
handler->SendSysMessage(LANG_MOVEGENS_FOLLOW_NULL);