diff options
author | maximius <none@none> | 2009-10-18 18:38:46 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-18 18:38:46 -0700 |
commit | d22768a6b5aa3eae1c58a418425eca08905cd677 (patch) | |
tree | d229851a558defcbaf3fb010947a80726d01c8c6 /src/game/Object.cpp | |
parent | 864b3f31e94e46077634ec6bfcad1769f4f2c889 (diff) |
*Cleanup
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 6d46834fea2..132d1c3e03b 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1903,7 +1903,7 @@ GameObject* WorldObject::SummonGameObject(uint32 entry, float x, float y, float return NULL; } go->SetRespawnTime(respawnTime); - if(GetTypeId()==TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) //not sure how to handle this + if(GetTypeId() == TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) //not sure how to handle this ((Unit*)this)->AddGameObject(go); else go->SetSpawnedByDefault(false); @@ -1920,7 +1920,7 @@ Creature* WorldObject::SummonTrigger(float x, float y, float z, float ang, uint3 return NULL; //summon->SetName(GetName()); - if(GetTypeId()==TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) + if(GetTypeId() == TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) { summon->setFaction(((Unit*)this)->getFaction()); summon->SetLevel(((Unit*)this)->getLevel()); |