Jump to content

Recommended Posts

  • 40 years later...
Posted

The following patch fixes the build on ubuntu 9.04

diff --git a/src/game/TargetedMovementGenerator.cpp b/src/game/TargetedMovementGenerator.cpp
index 3d68e39..39cf775 100644
--- a/src/game/TargetedMovementGenerator.cpp
+++ b/src/game/TargetedMovementGenerator.cpp
@@ -227,6 +227,24 @@ void ChaseMovementGenerator<T>::Reset(T &owner)

//-----------------------------------------------//
template<>
+void FollowMovementGenerator<Player>::_updateSpeed(Player &)
+{
+    // nothing to do for Player
+}
+
+template<>
+void FollowMovementGenerator<Creature>::_updateSpeed(Creature &u)
+{
+    // pet only sync speed with owner
+    if (!((Creature&)u).isPet() || !i_target.isValid() || i_target->GetGUID() != u.GetOwnerGUID())
+        return;
+
+    u.UpdateSpeed(MOVE_RUN,true);
+    u.UpdateSpeed(MOVE_WALK,true);
+    u.UpdateSpeed(MOVE_SWIM,true);
+}
+
+template<>
void FollowMovementGenerator<Creature>::_updateWalkMode(Creature &u)
{
    if (i_target.isValid() && u.isPet())
@@ -282,24 +300,6 @@ void FollowMovementGenerator<T>::Reset(T &owner)
    Initialize(owner);
}

-template<>
-void FollowMovementGenerator<Player>::_updateSpeed(Player &u)
-{
-    // nothing to do for Player
-}
-
-template<>
-void FollowMovementGenerator<Creature>::_updateSpeed(Creature &u)
-{
-    // pet only sync speed with owner
-    if (!((Creature&)u).isPet() || !i_target.isValid() || i_target->GetGUID() != u.GetOwnerGUID())
-        return;
-
-    u.UpdateSpeed(MOVE_RUN,true);
-    u.UpdateSpeed(MOVE_WALK,true);
-    u.UpdateSpeed(MOVE_SWIM,true);
-}
-
//-----------------------------------------------//
template void TargetedMovementGeneratorMedium<Player,ChaseMovementGenerator<Player> >::_setTargetLocation(Player &);
template void TargetedMovementGeneratorMedium<Player,FollowMovementGenerator<Player> >::_setTargetLocation(Player &);

Posted

:( Wowka321, you cheating me (maybe not specially) make me think that this is your patch in comment at github. So i will at first time ban you at week.

Maybe this will teach you and other _always_ provided info about authors.

mumion, sorry for wrong author info in commit.

Patch in [9215]

Posted

From Wowka321:

Vladimir, i'm not cheating you. Patch at github.com link, written and provided by me, after some researching problem at *nix and c++ code standards.

That why i write in this topic:

So fast to copy-paste

as i decide that patch was copied from my link at github.com

Or one and too problem solution was born in two brains simultaneously that too is not eliminated.

Может я и немного туповат, но воровать чужие мысли и выдавать их за свои мне нет необходимости и смысла. Мне чужие лавры не нужны...

Я собираю не спасибки или кол-во коммитов. Я собираю себе знания...

B.R. Wowka321

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use