mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-27 20:21:30 +00:00
Fix for quest::depop and quest::respawn not functioning
This commit is contained in:
parent
9e1115f899
commit
db70ad37dd
@ -596,12 +596,18 @@ void QuestManager::depop(int npc_type) {
|
||||
tmp->CastToNPC()->Depop();
|
||||
}
|
||||
else {
|
||||
depop_npc = true;
|
||||
running_quest e = quests_running_.top();
|
||||
e.depop_npc = true;
|
||||
quests_running_.pop();
|
||||
quests_running_.push(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
else { //depop self
|
||||
depop_npc = true;
|
||||
running_quest e = quests_running_.top();
|
||||
e.depop_npc = true;
|
||||
quests_running_.pop();
|
||||
quests_running_.push(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1572,7 +1578,11 @@ void QuestManager::respawn(int npc_type, int grid) {
|
||||
y = owner->GetY();
|
||||
z = owner->GetZ();
|
||||
h = owner->GetHeading();
|
||||
depop_npc = true;
|
||||
|
||||
running_quest e = quests_running_.top();
|
||||
e.depop_npc = true;
|
||||
quests_running_.pop();
|
||||
quests_running_.push(e);
|
||||
|
||||
const NPCType* tmp = 0;
|
||||
if ((tmp = database.GetNPCType(npc_type)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user