Fix some compiler warnings.

This commit is contained in:
lotodore
2010-10-11 15:44:56 +00:00
parent 2c558daf9e
commit 972f678730
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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;
}