清理怪物尸体时间(antrix.conf中定义)
清理怪物尸体时间(antrix.conf中定义)
虽然加这个没有什么技术含量,但是这个对于资源占用来说很重要........... Index: Creature.cpp =================================================================== --- Creature.cpp (revision 627) +++ Creature.cpp (working copy) @@ -362,8 +362,8 @@
GetAIInterface()->SetUnitToFollow(NULL); m_deathState = CORPSE; - - sEventMgr.AddEvent(this, &Creature::OnRemoveCorpse, EVENT_CREATURE_REMOVE_CORPSE, 180000, 1); + uint32 RemoveCopseTime = Config.MainConfig.GetIntDefault("godtoo","InitRCT",0); + sEventMgr.AddEvent(this, &Creature::OnRemoveCorpse, EVENT_CREATURE_REMOVE_CORPSE, RemoveCopseTime, 1); if(m_enslaveSpell) RemoveEnslave(); |