mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[11574] Speedup fishing loot prepare for zone == subzone case.
This commit is contained in:
parent
8698ac207d
commit
7995a36c69
2 changed files with 4 additions and 4 deletions
|
|
@ -473,8 +473,8 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue