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:
parent
41804c99da
commit
401f5caac2
@ -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]);
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user