[11574] Speedup fishing loot prepare for zone == subzone case.

This commit is contained in:
VladimirMangos 2011-05-31 04:02:36 +04:00
parent 8698ac207d
commit 7995a36c69
2 changed files with 4 additions and 4 deletions

View file

@ -473,9 +473,9 @@ void GameObject::getFishLoot(Loot *fishloot, Player* loot_owner)
GetZoneAndAreaId(zone,subzone); GetZoneAndAreaId(zone,subzone);
// if subzone loot exist use it // if subzone loot exist use it
if (!fishloot->FillLoot(subzone, LootTemplates_Fishing, loot_owner, true, true)) if (!fishloot->FillLoot(subzone, LootTemplates_Fishing, loot_owner, true, (subzone != zone)) && subzone != zone)
// else use zone loot (must exist in like case) // else use zone loot (if zone diff. from subzone, must exist in like case)
fishloot->FillLoot(zone, LootTemplates_Fishing, loot_owner,true); fishloot->FillLoot(zone, LootTemplates_Fishing, loot_owner, true);
} }
void GameObject::SaveToDB() void GameObject::SaveToDB()

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11573" #define REVISION_NR "11574"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__