Fixed compiler warnings.
This commit is contained in:
parent
282e178468
commit
f6398f3661
2
src/network/peer_vote.hpp
Normal file → Executable file
2
src/network/peer_vote.hpp
Normal file → Executable file
@ -56,7 +56,7 @@ public:
|
||||
ns.decodeStringW(&m_player_name);
|
||||
ns.decodeString(&m_track_name);
|
||||
m_num_laps = ns.getUInt8();
|
||||
m_reverse = ns.getUInt8();
|
||||
m_reverse = ns.getUInt8()!=0;
|
||||
|
||||
} // PeerVote(NetworkString &)
|
||||
|
||||
|
2
src/network/protocols/lobby_protocol.hpp
Normal file → Executable file
2
src/network/protocols/lobby_protocol.hpp
Normal file → Executable file
@ -154,7 +154,7 @@ public:
|
||||
GameSetup* getGameSetup() const { return m_game_setup; }
|
||||
// ------------------------------------------------------------------------
|
||||
/** Returns the number of votes received so far. */
|
||||
int getNumberOfVotes() const { return m_peers_votes.size(); }
|
||||
int getNumberOfVotes() const { return (int)m_peers_votes.size(); }
|
||||
// -----------------------------------------------------------------------
|
||||
/** Adds a vote.
|
||||
* \param host_id Host id of this vote.
|
||||
|
Loading…
x
Reference in New Issue
Block a user