Remove compiler warnings
This commit is contained in:
parent
beaafb3d79
commit
22f8095cb0
@ -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; }
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user