mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10591] Simplify LoadGameObjectForQuests for case GO type 3
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
66555530a8
commit
8bb27ebd8e
2 changed files with 4 additions and 10 deletions
|
|
@ -7720,19 +7720,13 @@ void ObjectMgr::LoadGameObjectForQuests()
|
|||
|
||||
switch(goInfo->type)
|
||||
{
|
||||
// scan GO chest with loot including quest items
|
||||
case GAMEOBJECT_TYPE_CHEST:
|
||||
{
|
||||
// scan GO chest with loot including quest items
|
||||
uint32 loot_id = goInfo->GetLootId();
|
||||
|
||||
// always activate to quest, GO may not have loot
|
||||
if (goInfo->chest.questId)
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
++count;
|
||||
}
|
||||
// find quest loot for GO
|
||||
else if (LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
// always activate to quest, GO may not have loot, OR find if GO has loot for quest.
|
||||
if (goInfo->chest.questId || LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
++count;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10590"
|
||||
#define REVISION_NR "10591"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue