mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 00:57:15 +00:00
Added disable_timer checks to doors override functions
This commit is contained in:
@@ -459,15 +459,18 @@ void Doors::NPCOpen(NPC* sender, bool alt_mode)
|
||||
|
||||
if(!alt_mode) { // original function
|
||||
if(!isopen) {
|
||||
if (!disable_timer)
|
||||
close_timer.Start();
|
||||
isopen=true;
|
||||
}
|
||||
else {
|
||||
close_timer.Disable();
|
||||
if (!disable_timer)
|
||||
isopen=false;
|
||||
}
|
||||
}
|
||||
else { // alternative function
|
||||
if (!disable_timer)
|
||||
close_timer.Start();
|
||||
isopen=true;
|
||||
}
|
||||
@@ -485,15 +488,18 @@ void Doors::ForceOpen(Mob *sender, bool alt_mode)
|
||||
|
||||
if(!alt_mode) { // original function
|
||||
if(!isopen) {
|
||||
if (!disable_timer)
|
||||
close_timer.Start();
|
||||
isopen=true;
|
||||
}
|
||||
else {
|
||||
close_timer.Disable();
|
||||
if (!disable_timer)
|
||||
isopen=false;
|
||||
}
|
||||
}
|
||||
else { // alternative function
|
||||
if (!disable_timer)
|
||||
close_timer.Start();
|
||||
isopen=true;
|
||||
}
|
||||
@@ -510,6 +516,7 @@ void Doors::ForceClose(Mob *sender, bool alt_mode)
|
||||
|
||||
if(!alt_mode) { // original function
|
||||
if(!isopen) {
|
||||
if (!disable_timer)
|
||||
close_timer.Start();
|
||||
isopen=true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user