mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 06:22:26 +00:00
[Cleanup] Doors EVENT_CLICK_DOOR syntax adjustment
This commit is contained in:
parent
c115cbcd6a
commit
d107213fe1
@ -4562,13 +4562,14 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app)
|
|||||||
if (within_distance) {
|
if (within_distance) {
|
||||||
if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) {
|
if (parse->PlayerHasQuestSub(EVENT_CLICK_DOOR)) {
|
||||||
std::vector<std::any> args = {currentdoor};
|
std::vector<std::any> args = {currentdoor};
|
||||||
if (parse->EventPlayer(EVENT_CLICK_DOOR, this, std::to_string(cd->doorid), 0, &args) == 0) {
|
|
||||||
|
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);
|
currentdoor->HandleClick(this, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
currentdoor->HandleClick(this, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// we let this pass because client controlled doors require this to force the linked doors
|
// we let this pass because client controlled doors require this to force the linked doors
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user