mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[9215] Move template function specializations before uses to make gcc happy.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
cc5ed7a48b
commit
2b891624c6
2 changed files with 19 additions and 19 deletions
|
|
@ -238,6 +238,24 @@ void FollowMovementGenerator<Player>::_updateWalkMode(Player &)
|
|||
{
|
||||
}
|
||||
|
||||
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 FollowMovementGenerator<Player>::Initialize(Player &owner)
|
||||
{
|
||||
|
|
@ -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 &);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9214"
|
||||
#define REVISION_NR "9215"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue