diff options
author | Spp <none@none> | 2010-04-07 17:24:07 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 17:24:07 +0200 |
commit | f490ad5ac259712e323f0a52e608ff1383b2fc41 (patch) | |
tree | 1bbe00973a622672eccf3450f302f7cb3bc33882 /src/game/GameObject.cpp | |
parent | 502fc82fb822e4245aff0530d22c013daa5d3de9 (diff) |
Code Style: tab to spaces
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 4daa17fa0be..47036aa38c5 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1147,10 +1147,10 @@ void GameObject::Use(Unit* user) break; } - if (BattleGround* bg = player->GetBattleGround()) - { - bg->EventPlayerUsedGO(player, this); - } + if (BattleGround* bg = player->GetBattleGround()) + { + bg->EventPlayerUsedGO(player, this); + } player->CastedCreatureOrGO(info->id, GetGUID(), 0); } @@ -1593,12 +1593,12 @@ void GameObject::TakenDamage(uint32 damage, Unit *who) SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED); SetUInt32Value(GAMEOBJECT_DISPLAYID, m_goInfo->building.destroyedDisplayId); EventInform(m_goInfo->building.destroyedEvent); - if(pwho) - { - if(BattleGround* bg = pwho->GetBattleGround()) - bg->EventPlayerDamagedGO(pwho, this, m_goInfo->building.destroyedEvent); - } - } + if(pwho) + { + if(BattleGround* bg = pwho->GetBattleGround()) + bg->EventPlayerDamagedGO(pwho, this, m_goInfo->building.destroyedEvent); + } + } } else // from intact to damaged { |