From 7995a36c69e33f1f4f13812c9d6e453ece77f64a Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 31 May 2011 04:02:36 +0400 Subject: [PATCH] [11574] Speedup fishing loot prepare for zone == subzone case. --- src/game/GameObject.cpp | 6 +++--- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index bd86e01d6..d1907431f 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -473,9 +473,9 @@ void GameObject::getFishLoot(Loot *fishloot, Player* loot_owner) GetZoneAndAreaId(zone,subzone); // if subzone loot exist use it - if (!fishloot->FillLoot(subzone, LootTemplates_Fishing, loot_owner, true, true)) - // else use zone loot (must exist in like case) - fishloot->FillLoot(zone, LootTemplates_Fishing, loot_owner,true); + if (!fishloot->FillLoot(subzone, LootTemplates_Fishing, loot_owner, true, (subzone != zone)) && subzone != zone) + // else use zone loot (if zone diff. from subzone, must exist in like case) + fishloot->FillLoot(zone, LootTemplates_Fishing, loot_owner, true); } void GameObject::SaveToDB() diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b9069dd42..8bcb6beed 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11573" + #define REVISION_NR "11574" #endif // __REVISION_NR_H__