mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Hotfix] Another doors fix
This commit is contained in:
parent
665e336946
commit
8ed7ca977f
@ -4560,15 +4560,15 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app)
|
||||
|
||||
// don't spam scripts with client controlled doors if not within distance
|
||||
if (within_distance) {
|
||||
int quest_return = 0;
|
||||
if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) {
|
||||
std::vector<std::any> args = {currentdoor};
|
||||
|
||||
int quest_return = 0;
|
||||
quest_return = parse->EventPlayer(EVENT_CLICK_DOOR, this, std::to_string(cd->doorid), 0, &args);
|
||||
}
|
||||
|
||||
if (quest_return == 0) {
|
||||
currentdoor->HandleClick(this, 0);
|
||||
}
|
||||
if (quest_return == 0) {
|
||||
currentdoor->HandleClick(this, 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user