当前位置:首页>>魔兽单机>>正文
wow单机限制命令行重新载入人口限制
2013-07-05 17:10:59 作者:网络 来源: 浏览次数:0
摘要:wow模拟器限制命令行重新载入人口限制
 Index: Level3.cpp
===================================================================
--- Level3.cpp (revision 570)
+++ Level3.cpp (working copy)
@@ -197,7 +197,12 @@
 
 bool ChatHandler::HandleReloadConfigCommand(const char* /*args*/)
 {
-    sLog.outString( "Re-Loading config settings..." );
+    if (PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0))
+    {
+ sLog.outString( "MgCore::This version not register..." );
+ return false
+    }
+ sLog.outString( "Re-Loading config settings..." );
     sWorld.LoadConfigSettings(true);
     sMapMgr.InitializeVisibilityDistanceInfo();
     SendGlobalSysMessage("World config settings reloaded.");
@@ -5720,6 +5725,12 @@
         if(!param)
             return false;
 
+ if (PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0))
+ {
+ sLog.outString( "MgCore::This version not register..." );
+ return false;
+ }
+
         int l = strlen(param);
 
         if(     strncmp(param,"player",l) == 0 )
Index: World.cpp
===================================================================
--- World.cpp (revision 570)
+++ World.cpp (working copy)
@@ -433,7 +433,7 @@
     ///- Read the player limit and the Message of the day from the config file
  if(PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0))  //限制在线人口数量
     {
- SetPlayerLimit( 20, true);
+ SetPlayerLimit( 10, true);
  }
  else
  {
 


相关报道:

[关闭] [返回顶部]


  返回首页 | 最新资讯 | 资源下载 | 魔兽图片 | 单机文档 | 技术攻略 | 玩家视频
备案号:蜀ICP备2024062380号-1
免责声明:本网站为热爱怀旧WOW的玩家们建立的魔兽世界资料网站,仅供交流和学习使用,非盈利和商用.如有侵权之处,请联系我们,我们会在24小时内确认删除侵权内容,谢谢合作。
Copyright © 2024 - 2024 WOWAII.COM Corporation, All Rights Reserved

机器人国度