aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-17 11:40:23 +0100
committern0n4m3 <none@none>2009-12-17 11:40:23 +0100
commit63659ea18b837a2f9c330de6c70dba16089d5c53 (patch)
treec9e50231f2374ae58a7bc4fac6162755e6963b84 /src/game/Object.h
parent5953596cee670517df4cf35fb1d428f9862a01b2 (diff)
Update some code for 322a
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index b068033bdf3..cc876f1c756 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -237,8 +237,7 @@ class TRINITY_DLL_SPEC Object
bool HasFlag( uint16 index, uint32 flag ) const
{
- if(index >= m_valuesCount && !PrintIndexError(index , false))
- return false;
+ if( index >= m_valuesCount && !PrintIndexError( index , false ) ) return false;
return (m_uint32Values[ index ] & flag) != 0;
}
@@ -611,11 +610,11 @@ class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
GameObject* SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime);
Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL);
- Creature* FindNearestCreature(uint32 uiEntry, float fMaxSearchRange, bool bAlive = true);
- GameObject* FindNearestGameObject(uint32 uiEntry, float fMaxSearchRange);
+ Creature* FindNearestCreature(uint32 entry, float range, bool alive = true);
+ GameObject* FindNearestGameObject(uint32 entry, float range);
- void GetCreatureListWithEntryInGrid(std::list<Creature*>& lList, uint32 uiEntry, float fMaxSearchRange);
void GetGameObjectListWithEntryInGrid(std::list<GameObject*>& lList, uint32 uiEntry, float fMaxSearchRange);
+ void GetCreatureListWithEntryInGrid(std::list<Creature*>& lList, uint32 uiEntry, float fMaxSearchRange);
void DestroyForNearbyPlayers();
@@ -655,4 +654,3 @@ class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
uint32 m_phaseMask; // in area phase state
};
#endif
-