[Doors] Remove door dev tools spam on client controlled doors (#2824)

* [Doors] Remove door dev tools spam on client controlled doors

* Update client_packet.cpp

* Update client_packet.cpp

* Update ruletypes.h
This commit is contained in:
Chris Miles
2023-02-06 17:23:40 -06:00
committed by GitHub
parent 0348cb6b8e
commit 0da6391be3
3 changed files with 33 additions and 9 deletions
+5 -1
View File
@@ -121,6 +121,7 @@ Doors::~Doors()
bool Doors::Process()
{
if (m_close_timer.Enabled() && m_close_timer.Check() && IsDoorOpen()) {
LogDoorsDetail("door open and timer triggered door_id [{}] open_type [{}]", GetDoorID(), m_open_type);
if (m_open_type == 40 || GetTriggerType() == 1) {
auto outapp = new EQApplicationPacket(OP_MoveDoor, sizeof(MoveDoor_Struct));
MoveDoor_Struct *md = (MoveDoor_Struct *) outapp->pBuffer;
@@ -627,11 +628,13 @@ void Doors::ForceOpen(Mob *sender, bool alt_mode)
if (!alt_mode) { // original function
if (!m_is_open) {
if (!m_disable_timer) {
LogDoorsDetail("door_id [{}] starting timer", md->doorid);
m_close_timer.Start();
}
m_is_open = true;
}
else {
LogDoorsDetail("door_id [{}] disable timer", md->doorid);
m_close_timer.Disable();
if (!m_disable_timer) {
m_is_open = false;
@@ -640,6 +643,7 @@ void Doors::ForceOpen(Mob *sender, bool alt_mode)
}
else { // alternative function
if (!m_disable_timer) {
LogDoorsDetail("door_id [{}] alt starting timer", md->doorid);
m_close_timer.Start();
}
m_is_open = true;
@@ -840,7 +844,7 @@ void Doors::CreateDatabaseEntry()
return;
}
auto e = DoorsRepository::NewEntity();
e.id = GetDoorDBID();