diff options
| author | Spp <none@none> | 2010-04-07 23:25:02 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-07 23:25:02 +0200 |
| commit | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (patch) | |
| tree | b744629b9fc3004bcb717c5f95a10724df3a6a62 /src/game/LootHandler.cpp | |
| parent | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (diff) | |
Code Style (game + scripts only):
"==" --> " == " (when needed)
--HG--
branch : trunk
Diffstat (limited to 'src/game/LootHandler.cpp')
| -rw-r--r-- | src/game/LootHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index 37d457575f8..e73a94b5b4d 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -81,7 +81,7 @@ void WorldSession::HandleAutostoreLootItemOpcode(WorldPacket & recv_data) { Creature* pCreature = GetPlayer()->GetMap()->GetCreature(lguid); - bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass()==CLASS_ROGUE && pCreature->lootForPickPocketed); + bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass() == CLASS_ROGUE && pCreature->lootForPickPocketed); if (!ok_loot || !pCreature->IsWithinDistInMap(_player,INTERACTION_DISTANCE)) { @@ -176,7 +176,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket & /*recv_data*/) GameObject *pGameObject = GetPlayer()->GetMap()->GetGameObject(guid); // not check distance for GO in case owned GO (fishing bobber case, for example) - if (pGameObject && ((pGameObject->GetOwnerGUID()==_player->GetGUID() || pGameObject->IsWithinDistInMap(_player,INTERACTION_DISTANCE)))) + if (pGameObject && ((pGameObject->GetOwnerGUID() == _player->GetGUID() || pGameObject->IsWithinDistInMap(_player,INTERACTION_DISTANCE)))) pLoot = &pGameObject->loot; break; @@ -200,7 +200,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket & /*recv_data*/) { Creature* pCreature = GetPlayer()->GetMap()->GetCreature(guid); - bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass()==CLASS_ROGUE && pCreature->lootForPickPocketed); + bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass() == CLASS_ROGUE && pCreature->lootForPickPocketed); if (ok_loot && pCreature->IsWithinDistInMap(_player,INTERACTION_DISTANCE)) pLoot = &pCreature->loot ; @@ -430,7 +430,7 @@ void WorldSession::DoLootRelease(uint64 lguid) { Creature* pCreature = GetPlayer()->GetMap()->GetCreature(lguid); - bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass()==CLASS_ROGUE && pCreature->lootForPickPocketed); + bool ok_loot = pCreature && pCreature->isAlive() == (player->getClass() == CLASS_ROGUE && pCreature->lootForPickPocketed); if (!ok_loot || !pCreature->IsWithinDistInMap(_player,INTERACTION_DISTANCE)) return; |
