mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9211] Fixed recent build problems at *nix.
Thanks to DasBlub and Lightguard for teating. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
de4d8c3a04
commit
a6a5935406
4 changed files with 15 additions and 10 deletions
|
|
@ -82,21 +82,26 @@ bool PointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<>
|
||||||
void PointMovementGenerator<T>::MovementInform(T& /*unit*/)
|
void PointMovementGenerator<Player>::MovementInform(Player&)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template <> void PointMovementGenerator<Creature>::MovementInform(Creature &unit)
|
template <>
|
||||||
|
void PointMovementGenerator<Creature>::MovementInform(Creature &unit)
|
||||||
{
|
{
|
||||||
unit.AI()->MovementInform(POINT_MOTION_TYPE, id);
|
unit.AI()->MovementInform(POINT_MOTION_TYPE, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
template void PointMovementGenerator<Player>::Initialize(Player&);
|
template void PointMovementGenerator<Player>::Initialize(Player&);
|
||||||
template bool PointMovementGenerator<Player>::Update(Player &, const uint32 &diff);
|
|
||||||
template void PointMovementGenerator<Player>::MovementInform(Player&);
|
|
||||||
|
|
||||||
template void PointMovementGenerator<Creature>::Initialize(Creature&);
|
template void PointMovementGenerator<Creature>::Initialize(Creature&);
|
||||||
|
template void PointMovementGenerator<Player>::Finalize(Player&);
|
||||||
|
template void PointMovementGenerator<Creature>::Finalize(Creature&);
|
||||||
|
template void PointMovementGenerator<Player>::Interrupt(Player&);
|
||||||
|
template void PointMovementGenerator<Creature>::Interrupt(Creature&);
|
||||||
|
template void PointMovementGenerator<Player>::Reset(Player&);
|
||||||
|
template void PointMovementGenerator<Creature>::Reset(Creature&);
|
||||||
|
template bool PointMovementGenerator<Player>::Update(Player &, const uint32 &diff);
|
||||||
template bool PointMovementGenerator<Creature>::Update(Creature&, const uint32 &diff);
|
template bool PointMovementGenerator<Creature>::Update(Creature&, const uint32 &diff);
|
||||||
|
|
||||||
void AssistanceMovementGenerator::Finalize(Unit &unit)
|
void AssistanceMovementGenerator::Finalize(Unit &unit)
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,8 @@ bool TargetedMovementGeneratorMedium<T,D>::Update(T &owner, const uint32 & time_
|
||||||
template<class T>
|
template<class T>
|
||||||
void ChaseMovementGenerator<T>::_reachTarget(T &owner)
|
void ChaseMovementGenerator<T>::_reachTarget(T &owner)
|
||||||
{
|
{
|
||||||
if(owner.canReachWithAttack(i_target.getTarget()))
|
if(owner.canReachWithAttack(this->i_target.getTarget()))
|
||||||
owner.Attack(i_target.getTarget(),true);
|
owner.Attack(this->i_target.getTarget(),true);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ class MANGOS_DLL_SPEC ChaseMovementGenerator : public TargetedMovementGeneratorM
|
||||||
|
|
||||||
static void _clearUnitStateMove(T &u) { u.clearUnitState(UNIT_STAT_CHASE_MOVE); }
|
static void _clearUnitStateMove(T &u) { u.clearUnitState(UNIT_STAT_CHASE_MOVE); }
|
||||||
static void _addUnitStateMove(T &u) { u.addUnitState(UNIT_STAT_CHASE_MOVE); }
|
static void _addUnitStateMove(T &u) { u.addUnitState(UNIT_STAT_CHASE_MOVE); }
|
||||||
bool _lostTarget(T &u) const { return u.getVictim() != GetTarget(); }
|
bool _lostTarget(T &u) const { return u.getVictim() != this->GetTarget(); }
|
||||||
void _reachTarget(T &);
|
void _reachTarget(T &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9210"
|
#define REVISION_NR "9211"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue