mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-05 15:22:37 +00:00
Client timer issue fix
This commit is contained in:
parent
22742b6a25
commit
37d3daaf9a
@ -3,6 +3,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
|||||||
== 09/03/2014 ==
|
== 09/03/2014 ==
|
||||||
Secrets: Identified the routines needed to augment items in RoF. Currently, only Insert and Remove are supported. Swap and Destroy do not work due to missing functions related to the cursor.
|
Secrets: Identified the routines needed to augment items in RoF. Currently, only Insert and Remove are supported. Swap and Destroy do not work due to missing functions related to the cursor.
|
||||||
demonstar55: Added work around command to show numhits on your buffs (#shownumhits)
|
demonstar55: Added work around command to show numhits on your buffs (#shownumhits)
|
||||||
|
Uleat: Fix for timer issue introduced by Zone::ShutDown() fix.
|
||||||
|
|
||||||
== 09/02/2014 ==
|
== 09/02/2014 ==
|
||||||
Secrets: Identified OP_GuildPromote for RoF clients.
|
Secrets: Identified OP_GuildPromote for RoF clients.
|
||||||
|
|||||||
@ -727,6 +727,7 @@ public:
|
|||||||
virtual void AI_Init();
|
virtual void AI_Init();
|
||||||
virtual void AI_Start(uint32 iMoveDelay = 0);
|
virtual void AI_Start(uint32 iMoveDelay = 0);
|
||||||
virtual void AI_Stop();
|
virtual void AI_Stop();
|
||||||
|
virtual void AI_ShutDown();
|
||||||
virtual void AI_Process();
|
virtual void AI_Process();
|
||||||
|
|
||||||
const char* GetEntityVariable(const char *id);
|
const char* GetEntityVariable(const char *id);
|
||||||
|
|||||||
@ -550,30 +550,6 @@ void Mob::AI_Stop() {
|
|||||||
safe_delete(AItarget_check_timer);
|
safe_delete(AItarget_check_timer);
|
||||||
safe_delete(AIscanarea_timer);
|
safe_delete(AIscanarea_timer);
|
||||||
safe_delete(AIfeignremember_timer);
|
safe_delete(AIfeignremember_timer);
|
||||||
safe_delete(PathingLOSCheckTimer);
|
|
||||||
safe_delete(PathingRouteUpdateTimerShort);
|
|
||||||
safe_delete(PathingRouteUpdateTimerLong);
|
|
||||||
|
|
||||||
attack_timer.Disable();
|
|
||||||
attack_dw_timer.Disable();
|
|
||||||
ranged_timer.Disable();
|
|
||||||
tic_timer.Disable();
|
|
||||||
mana_timer.Disable();
|
|
||||||
spellend_timer.Disable();
|
|
||||||
projectile_timer.Disable();
|
|
||||||
rewind_timer.Disable();
|
|
||||||
bindwound_timer.Disable();
|
|
||||||
stunned_timer.Disable();
|
|
||||||
spun_timer.Disable();
|
|
||||||
bardsong_timer.Disable();
|
|
||||||
gravity_timer.Disable();
|
|
||||||
viral_timer.Disable();
|
|
||||||
flee_timer.Disable();
|
|
||||||
|
|
||||||
for (int sat = 0; sat < MAX_SPECIAL_ATTACK; ++sat) {
|
|
||||||
if (SpecialAbilities[sat].timer)
|
|
||||||
SpecialAbilities[sat].timer->Disable();
|
|
||||||
}
|
|
||||||
|
|
||||||
hate_list.Wipe();
|
hate_list.Wipe();
|
||||||
}
|
}
|
||||||
@ -609,6 +585,34 @@ void Client::AI_Stop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// only call this on a zone shutdown event
|
||||||
|
void Mob::AI_ShutDown() {
|
||||||
|
safe_delete(PathingLOSCheckTimer);
|
||||||
|
safe_delete(PathingRouteUpdateTimerShort);
|
||||||
|
safe_delete(PathingRouteUpdateTimerLong);
|
||||||
|
|
||||||
|
attack_timer.Disable();
|
||||||
|
attack_dw_timer.Disable();
|
||||||
|
ranged_timer.Disable();
|
||||||
|
tic_timer.Disable();
|
||||||
|
mana_timer.Disable();
|
||||||
|
spellend_timer.Disable();
|
||||||
|
projectile_timer.Disable();
|
||||||
|
rewind_timer.Disable();
|
||||||
|
bindwound_timer.Disable();
|
||||||
|
stunned_timer.Disable();
|
||||||
|
spun_timer.Disable();
|
||||||
|
bardsong_timer.Disable();
|
||||||
|
gravity_timer.Disable();
|
||||||
|
viral_timer.Disable();
|
||||||
|
flee_timer.Disable();
|
||||||
|
|
||||||
|
for (int sat = 0; sat < MAX_SPECIAL_ATTACK; ++sat) {
|
||||||
|
if (SpecialAbilities[sat].timer)
|
||||||
|
SpecialAbilities[sat].timer->Disable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//todo: expand the logic here to cover:
|
//todo: expand the logic here to cover:
|
||||||
//redundant debuffs
|
//redundant debuffs
|
||||||
//buffing owner
|
//buffing owner
|
||||||
|
|||||||
@ -733,6 +733,7 @@ void Zone::Shutdown(bool quite)
|
|||||||
while (mob_itr != mob_list.end()) {
|
while (mob_itr != mob_list.end()) {
|
||||||
Mob* mob_inst = *mob_itr;
|
Mob* mob_inst = *mob_itr;
|
||||||
mob_inst->AI_Stop();
|
mob_inst->AI_Stop();
|
||||||
|
mob_inst->AI_ShutDown();
|
||||||
++mob_itr;
|
++mob_itr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user