aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities/GameObject
diff options
context:
space:
mode:
authorkaelima <jeppo_meyer@msn.com>2011-06-12 02:30:32 +0200
committerkaelima <jeppo_meyer@msn.com>2011-06-12 02:30:32 +0200
commitb9e8694540f019792f15dfbee8041cec61e8b2bf (patch)
tree9e4207d391764e3d7ac3f71185aa9ccef46fb8e0 /src/server/game/Entities/GameObject
parentda03bbbdab7515434191ab1f48e686fcac11cca2 (diff)
Core: Continued cleanup
If and for whitespaces.
Diffstat (limited to 'src/server/game/Entities/GameObject')
-rwxr-xr-xsrc/server/game/Entities/GameObject/GameObject.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index dae77ac300e..c3ee0df326c 100755
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -232,13 +232,13 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
case GAMEOBJECT_TYPE_TRAP:
if (GetGOInfo()->trap.stealthed)
{
- m_stealth.AddFlag( STEALTH_TRAP);
+ m_stealth.AddFlag(STEALTH_TRAP);
m_stealth.AddValue(STEALTH_TRAP, 300);
}
if (GetGOInfo()->trap.invisible)
{
- m_invisibility.AddFlag( INVISIBILITY_TRAP);
+ m_invisibility.AddFlag(INVISIBILITY_TRAP);
m_invisibility.AddValue(INVISIBILITY_TRAP, 70);
}
@@ -255,7 +255,7 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
void GameObject::Update(uint32 diff)
{
- if(!AI())
+ if (!AI())
{
if (!AIM_Initialize())
sLog->outError("Could not initialize GameObjectAI");
@@ -1523,10 +1523,10 @@ void GameObject::Use(Unit* user)
if (player->CanUseBattlegroundObject())
{
// in battleground check
- Battleground *bg = player->GetBattleground();
+ Battleground* bg = player->GetBattleground();
if (!bg)
return;
- if( player->GetVehicle())
+ if (player->GetVehicle())
return;
// BG flag dropped
// WS:
@@ -1589,7 +1589,7 @@ void GameObject::Use(Unit* user)
if (!spellId)
return;
- SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId);
+ SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId);
if (!spellInfo)
{
if (user->GetTypeId() != TYPEID_PLAYER || !sOutdoorPvPMgr->HandleCustomSpell(user->ToPlayer(), spellId, this))