|
清理怪物尸体时间(antrix.conf中定义) 清理怪物尸体时间(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(); |
| 上一篇魔兽私服文章:上一篇: | 限制飞行坐骑状态不能使用传送员 |
| 下一篇魔兽私服文章:下一篇: | 修改代码,让单人进入团队副本 |