[Bug Fix] EVENT_ENTER_AREA/EVENT_LEAVE_AREA. (#2698)

Should be EventPlayer, not EventNPC.
This commit is contained in:
Alex King 2023-01-01 20:43:42 -05:00 committed by GitHub
parent 3e4231c662
commit 7e13d07108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4028,9 +4028,9 @@ void EntityList::ProcessMove(Client *c, const glm::vec3& location)
} else if (evt.event_id == EVENT_EXIT) {
parse->EventPlayer(EVENT_EXIT, evt.client, "", 0);
} else if (evt.event_id == EVENT_ENTER_AREA) {
parse->EventNPC(EVENT_ENTER_AREA, evt.npc, evt.client, "", 0, &args);
parse->EventPlayer(EVENT_ENTER_AREA, evt.client, "", 0, &args);
} else if (evt.event_id == EVENT_LEAVE_AREA) {
parse->EventNPC(EVENT_LEAVE_AREA, evt.npc, evt.client, "", 0, &args);
parse->EventPlayer(EVENT_LEAVE_AREA, evt.client, "", 0, &args);
}
}
}