diff options
| author | Spp- <u84280@epreinf21.(none)> | 2011-08-03 08:18:24 +0200 |
|---|---|---|
| committer | Spp- <u84280@epreinf21.(none)> | 2011-08-03 08:18:24 +0200 |
| commit | fcdd4d784fbeaf976d76b8c3e8739579c1dcc91e (patch) | |
| tree | 4974f15373e49f5122e5aff0a7a5ee0afc052d3c /src/server/game/AI | |
| parent | 43720b1e3aa9909694c09d28d7cf9cd81ce5e2d8 (diff) | |
Core/Transport: Minor optimization in LoadTransports (And some cosmetic changes here and there in other files)
Diffstat (limited to 'src/server/game/AI')
| -rwxr-xr-x | src/server/game/AI/CoreAI/UnitAI.h | 2 | ||||
| -rwxr-xr-x | src/server/game/AI/CreatureAI.cpp | 3 | ||||
| -rwxr-xr-x | src/server/game/AI/EventAI/CreatureEventAIMgr.cpp | 2 | ||||
| -rwxr-xr-x | src/server/game/AI/EventAI/CreatureEventAIMgr.h | 6 | ||||
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.h | 2 |
5 files changed, 10 insertions, 5 deletions
diff --git a/src/server/game/AI/CoreAI/UnitAI.h b/src/server/game/AI/CoreAI/UnitAI.h index 29804fb2899..6c3f2264473 100755 --- a/src/server/game/AI/CoreAI/UnitAI.h +++ b/src/server/game/AI/CoreAI/UnitAI.h @@ -120,7 +120,7 @@ class UnitAI virtual void DoAction(int32 const /*param*/) {} virtual uint32 GetData(uint32 /*id = 0*/) { return 0; } virtual void SetData(uint32 /*id*/, uint32 /*value*/) {} - virtual void SetGUID(uint64 const/*guid*/, int32 /*id*/ = 0) {} + virtual void SetGUID(uint64 /*guid*/, int32 /*id*/ = 0) {} virtual uint64 GetGUID(int32 /*id*/ = 0) { return 0; } Unit* SelectTarget(SelectAggroTarget targetType, uint32 position = 0, float dist = 0.0f, bool playerOnly = false, int32 aura = 0); diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index 1932710a43e..ee822d9df40 100755 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -22,6 +22,9 @@ #include "World.h" #include "SpellMgr.h" #include "Vehicle.h" +#include "Log.h" +#include "MapReference.h" +#include "Player.h" //Disable CreatureAI when charmed void CreatureAI::OnCharmed(bool /*apply*/) diff --git a/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp b/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp index 3f1b2d71da1..6c3765252f0 100755 --- a/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp +++ b/src/server/game/AI/EventAI/CreatureEventAIMgr.cpp @@ -68,7 +68,7 @@ void CreatureEventAIMgr::LoadCreatureEventAI_Texts() continue; } - // range negative (don't must be happen, loaded from same table) + // range negative (must not happen, loaded from same table) if (!sObjectMgr->GetTrinityStringLocale(i)) { sLog->outErrorDb("CreatureEventAI: Entry %i in table `creature_ai_texts` not found", i); diff --git a/src/server/game/AI/EventAI/CreatureEventAIMgr.h b/src/server/game/AI/EventAI/CreatureEventAIMgr.h index 18cb1fb2f0d..50af460541f 100755 --- a/src/server/game/AI/EventAI/CreatureEventAIMgr.h +++ b/src/server/game/AI/EventAI/CreatureEventAIMgr.h @@ -25,10 +25,12 @@ class CreatureEventAIMgr { friend class ACE_Singleton<CreatureEventAIMgr, ACE_Null_Mutex>; - CreatureEventAIMgr(){}; - public: + + private: + CreatureEventAIMgr(){}; ~CreatureEventAIMgr(){}; + public: void LoadCreatureEventAI_Texts(); void LoadCreatureEventAI_Summons(); void LoadCreatureEventAI_Scripts(); diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index e26d125b442..5a41de6becc 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -157,7 +157,7 @@ class SmartAI : public CreatureAI void SetData(uint32 id, uint32 value); // Used in scripts to share variables - void SetGUID(const uint64 guid, int32 id = 0); + void SetGUID(uint64 guid, int32 id = 0); // Used in scripts to share variables uint64 GetGUID(int32 id = 0); |
