diff options
| author | maximius <none@none> | 2009-09-14 16:50:01 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-09-14 16:50:01 -0700 |
| commit | 6cb428318af4aba5ebb9d9340284165ca6181065 (patch) | |
| tree | 9aee2db05975f78bf96fc0bbfff47a5fa4fca112 /src/game/LootHandler.cpp | |
| parent | 33f8f5ac2d2b99819ce7e0f4aad4fa0648eba35e (diff) | |
| parent | 140ec674a040bdc04086472330a289c2d15ecc65 (diff) | |
*Merge..
--HG--
branch : trunk
Diffstat (limited to 'src/game/LootHandler.cpp')
| -rw-r--r-- | src/game/LootHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index 63e7308e340..7a7f78fb90a 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -47,7 +47,7 @@ void WorldSession::HandleAutostoreLootItemOpcode( WorldPacket & recv_data ) GameObject *go = player->GetMap()->GetGameObject(lguid); // not check distance for GO in case owned GO (fishing bobber case, for example) or Fishing hole GO - if (!go || ((go->GetOwnerGUID() != _player->GetGUID() && go->GetGoType() != GAMEOBJECT_TYPE_FISHINGHOLE) && !go->IsWithinDistInMap(_player,INTERACTION_DISTANCE))) + if (!go || (go->GetOwnerGUID() != _player->GetGUID() && go->GetGoType() != GAMEOBJECT_TYPE_FISHINGHOLE) && !go->IsWithinDistInMap(_player,INTERACTION_DISTANCE)) { player->SendLootRelease(lguid); return; @@ -292,7 +292,7 @@ void WorldSession::DoLootRelease( uint64 lguid ) GameObject *go = GetPlayer()->GetMap()->GetGameObject(lguid); // not check distance for GO in case owned GO (fishing bobber case, for example) or Fishing hole GO - if (!go || ((go->GetOwnerGUID() != _player->GetGUID() && go->GetGoType() != GAMEOBJECT_TYPE_FISHINGHOLE) && !go->IsWithinDistInMap(_player,INTERACTION_DISTANCE))) + if (!go || (go->GetOwnerGUID() != _player->GetGUID() && go->GetGoType() != GAMEOBJECT_TYPE_FISHINGHOLE) && !go->IsWithinDistInMap(_player,INTERACTION_DISTANCE)) return; loot = &go->loot; |
