mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9446] Compile fix in MovementGenerator.cpp
Also added few newlines to end of files to satisfy GCC. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
87b08b4fa1
commit
9d6531ae6d
5 changed files with 6 additions and 4 deletions
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#include "MovementGenerator.h"
|
||||
#include "Unit.h"
|
||||
|
||||
MovementGenerator::~MovementGenerator()
|
||||
{
|
||||
|
|
@ -27,4 +28,4 @@ bool MovementGenerator::IsActive( Unit& u )
|
|||
// When movement generator list modified from Update movegen object erase delayed,
|
||||
// so pointer still valid and be used for check
|
||||
return !u.GetMotionMaster()->empty() && u.GetMotionMaster()->top() == this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,3 +124,4 @@ typedef FactoryHolder<MovementGenerator,MovementGeneratorType> MovementGenerator
|
|||
typedef FactoryHolder<MovementGenerator,MovementGeneratorType>::FactoryHolderRegistry MovementGeneratorRegistry;
|
||||
typedef FactoryHolder<MovementGenerator,MovementGeneratorType>::FactoryHolderRepository MovementGeneratorRepository;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -6367,4 +6367,4 @@ WorldObject* Spell::GetCastingObject() const
|
|||
return m_caster->IsInWorld() ? m_caster->GetMap()->GetGameObject(m_originalCasterGUID) : NULL;
|
||||
else
|
||||
return m_caster;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,4 +138,4 @@ public PathMovementBase<Player>
|
|||
// allow use for overwrite empty implementation
|
||||
bool GetDestination(float& x, float& y, float& z) const { return PathMovementBase<Player>::GetDestination(x,y,z); }
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9445"
|
||||
#define REVISION_NR "9446"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue