Skip to content

Commit

Permalink
review bot
Browse files Browse the repository at this point in the history
  • Loading branch information
geektcp committed Oct 12, 2023
1 parent ed3c786 commit 02b53a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/game/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#include <mutex>
#include <cstdarg>
#include <memory>

#include <algorithm>
INSTANTIATE_SINGLETON_1(World);

extern void LoadGameObjectModelList();
Expand Down Expand Up @@ -343,7 +343,6 @@ void World::LoadConfigSettings(bool reload)
return;
}
}

///- Read the version of the configuration file and warn the user in case of emptiness or mismatch
uint32 confVersion = sConfig.GetIntDefault("ConfVersion", 0);
if (!confVersion)
Expand All @@ -369,7 +368,7 @@ void World::LoadConfigSettings(bool reload)

///- Read the player limit and the Message of the day from the config file
SetPlayerLimit(sConfig.GetIntDefault("PlayerLimit", DEFAULT_PLAYER_LIMIT), true);
SetMotd(sConfig.GetStringDefault("Motd", "Welcome to the everwar.cn Server."));
SetMotd(s);

///- Read all rates from the config file
setConfigPos(CONFIG_FLOAT_RATE_HEALTH, "Rate.Health", 1.0f);
Expand Down
5 changes: 5 additions & 0 deletions src/game/playerbot/PlayerbotMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,11 @@ uint32 Player::GetSpec()
return spec;
}

/**
* add AI player start here
* @param args
* @return
*/
bool ChatHandler::HandlePlayerbotCommand(char* args)
{
if (!(m_session->GetSecurity() > SEC_PLAYER))
Expand Down

0 comments on commit 02b53a1

Please sign in to comment.