From 8ed7ca977f47db7e32fd2edb03151d9dabd0ae65 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 14 Feb 2023 06:28:42 -0600 Subject: [PATCH] [Hotfix] Another doors fix --- zone/client_packet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 391e64b55..e82a1e1a6 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -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 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 {