diff options
author | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
commit | 26b5e033ffde3d161382fc9addbfa99738379641 (patch) | |
tree | a344f369ca32945f787a02dee35c3dbe342bed7e /src/game/ReactorAI.cpp | |
parent | f21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff) |
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
Diffstat (limited to 'src/game/ReactorAI.cpp')
-rw-r--r-- | src/game/ReactorAI.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/game/ReactorAI.cpp b/src/game/ReactorAI.cpp index 3cece43a7c1..b50aa1825e2 100644 --- a/src/game/ReactorAI.cpp +++ b/src/game/ReactorAI.cpp @@ -17,37 +17,30 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - #include "ByteBuffer.h" #include "ReactorAI.h" #include "Errors.h" #include "Log.h" #include "ObjectAccessor.h" #include "CreatureAIImpl.h" - #define REACTOR_VISIBLE_RANGE (26.46f) - int ReactorAI::Permissible(const Creature *creature) { if( creature->isCivilian() || creature->IsNeutralToAll() ) return PERMIT_BASE_REACTIVE; - return PERMIT_BASE_NO; } - void ReactorAI::MoveInLineOfSight(Unit *) { } - void ReactorAI::UpdateAI(const uint32 /*time_diff*/) { // update i_victimGuid if m_creature->getVictim() !=0 and changed if(!UpdateVictim()) return; - if( m_creature->isAttackReady() ) { if( m_creature->IsWithinMeleeRange(m_creature->getVictim())) |