From 401f5caac22de1e822007d234220c5528a22cadc Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 21 Oct 2013 04:32:05 +0000 Subject: [PATCH] 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 --- src/network/protocols/client_lobby_room_protocol.cpp | 2 +- src/network/protocols/server_lobby_room_protocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/protocols/client_lobby_room_protocol.cpp b/src/network/protocols/client_lobby_room_protocol.cpp index f5b8fe5d3..a6abcb51a 100644 --- a/src/network/protocols/client_lobby_room_protocol.cpp +++ b/src/network/protocols/client_lobby_room_protocol.cpp @@ -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]); } //----------------------------------------------------------------------------- diff --git a/src/network/protocols/server_lobby_room_protocol.cpp b/src/network/protocols/server_lobby_room_protocol.cpp index 19cf1fbf8..38d4d99fd 100644 --- a/src/network/protocols/server_lobby_room_protocol.cpp +++ b/src/network/protocols/server_lobby_room_protocol.cpp @@ -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