mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 05:07:37 +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(!alt_mode) { // original function
|
||||||
if(!isopen) {
|
if(!isopen) {
|
||||||
close_timer.Start();
|
if (!disable_timer)
|
||||||
|
close_timer.Start();
|
||||||
isopen=true;
|
isopen=true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
close_timer.Disable();
|
close_timer.Disable();
|
||||||
isopen=false;
|
if (!disable_timer)
|
||||||
|
isopen=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // alternative function
|
else { // alternative function
|
||||||
close_timer.Start();
|
if (!disable_timer)
|
||||||
|
close_timer.Start();
|
||||||
isopen=true;
|
isopen=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -485,16 +488,19 @@ void Doors::ForceOpen(Mob *sender, bool alt_mode)
|
|||||||
|
|
||||||
if(!alt_mode) { // original function
|
if(!alt_mode) { // original function
|
||||||
if(!isopen) {
|
if(!isopen) {
|
||||||
close_timer.Start();
|
if (!disable_timer)
|
||||||
|
close_timer.Start();
|
||||||
isopen=true;
|
isopen=true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
close_timer.Disable();
|
close_timer.Disable();
|
||||||
isopen=false;
|
if (!disable_timer)
|
||||||
|
isopen=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // alternative function
|
else { // alternative function
|
||||||
close_timer.Start();
|
if (!disable_timer)
|
||||||
|
close_timer.Start();
|
||||||
isopen=true;
|
isopen=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -510,7 +516,8 @@ void Doors::ForceClose(Mob *sender, bool alt_mode)
|
|||||||
|
|
||||||
if(!alt_mode) { // original function
|
if(!alt_mode) { // original function
|
||||||
if(!isopen) {
|
if(!isopen) {
|
||||||
close_timer.Start();
|
if (!disable_timer)
|
||||||
|
close_timer.Start();
|
||||||
isopen=true;
|
isopen=true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user