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