Fixed compiler warnings (forcing int to be true or false or so).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@14282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-10-21 04:32:05 +00:00
parent 41804c99da
commit 401f5caac2
2 changed files with 2 additions and 2 deletions

View File

@ -778,7 +778,7 @@ void ClientLobbyRoomProtocol::playerReversedVote(Event* event)
return;
if (!isByteCorrect(event, 9, 1))
return;
m_setup->getRaceConfig()->setPlayerReversedVote(data[6], data[8], data[10]);
m_setup->getRaceConfig()->setPlayerReversedVote(data[6], data[8]!=0, data[10]);
}
//-----------------------------------------------------------------------------

View File

@ -613,7 +613,7 @@ void ServerLobbyRoomProtocol::playerReversedVote(Event* event)
if (!isByteCorrect(event, 7, 1))
return;
uint8_t player_id = peer->getPlayerProfile()->race_id;
m_setup->getRaceConfig()->setPlayerReversedVote(player_id, data[6], data[8]);
m_setup->getRaceConfig()->setPlayerReversedVote(player_id, data[6]!=0, data[8]);
// Send the vote to everybody (including the sender)
NetworkString other;
other.ai8(1).ai8(player_id); // add the player id