Fix some compiler warnings.
This commit is contained in:
@@ -1357,7 +1357,7 @@ ServerGameStateWaitPlayerAction::TimerTimeout(const boost::system::error_code &e
|
||||
curPlayer->incrementActionTimeoutCounter();
|
||||
|
||||
if (server->GetGameData().gameType == GAME_TYPE_RANKING
|
||||
&& server->GetGameData().playerActionTimeoutSec >= server->GetSmallDelaySec())
|
||||
&& server->GetGameData().playerActionTimeoutSec >= (int)server->GetSmallDelaySec())
|
||||
{
|
||||
if (curPlayer->getActionTimeoutCounter() == SERVER_WARNING_ACTION_TIMEOUT_THRESHOLD)
|
||||
{
|
||||
|
||||
@@ -1677,7 +1677,7 @@ ServerLobbyThread::TimerUpdateClientLoginLock(const boost::system::error_code &e
|
||||
{
|
||||
TimerClientAddressMap::iterator next = i;
|
||||
++next;
|
||||
if (i->second.elapsed().total_seconds() > SERVER_INIT_LOGIN_CLIENT_LOCK_SEC)
|
||||
if (i->second.elapsed().total_seconds() > (int)SERVER_INIT_LOGIN_CLIENT_LOCK_SEC)
|
||||
m_timerClientAddressMap.erase(i);
|
||||
i = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user