Skip to content

Commit

Permalink
Merge pull request #94 from raymondzuo/master
Browse files Browse the repository at this point in the history
Bug fix: May not have game server to select when multi-servers config…
  • Loading branch information
ketoo authored May 11, 2018
2 parents ded6eb9 + 2e01531 commit 9d1e400
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ void NFCProxyServerNet_ServerModule::OnSelectServerProcess(const NFSOCK nSockInd
int nGameID = 0;
NFMapEx<int, ConnectData>& xServerList = m_pNetClientModule->GetServerList();
ConnectData* pGameData = xServerList.FirstNude();
while (pGameData && NF_SERVER_TYPES::NF_ST_GAME == pGameData->eServerType)
while (pGameData)
{
if (ConnectDataState::NORMAL == pGameData->eState)
if (ConnectDataState::NORMAL == pGameData->eState
&& NF_SERVER_TYPES::NF_ST_GAME == pGameData->eServerType)
{
if (pGameData->nWorkLoad < nWorkload)
{
Expand Down

0 comments on commit 9d1e400

Please sign in to comment.