Remove compiler warnings

This commit is contained in:
Benau 2018-04-06 18:03:33 +08:00
parent beaafb3d79
commit 22f8095cb0
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ public:
bool isSoccerGoalTarget() const
{
assert(hasExtraSeverInfo());
return (bool)m_extra_server_info;
return m_extra_server_info != 0;
}
// ------------------------------------------------------------------------
const std::vector<std::string>& getAllTracks() const { return m_tracks; }

View File

@ -485,7 +485,7 @@ void ClientLobby::connectionAccepted(Event* event)
core::stringw tl = _("Time limit");
core::stringw gl = _("Goals limit");
core::stringw sgt = u_data == 0 ? tl : gl;
m_game_setup->setSoccerGoalTarget((bool)u_data);
m_game_setup->setSoccerGoalTarget(u_data != 0);
//I18N: In the networking lobby
each_line = _("Soccer game type: %s", sgt);
NetworkingLobby::getInstance()->addMoreServerInfo(each_line);