Merge pull request #57 from lioncash/net-clarify
Clarify an if statement in NetPlayClient.cpp.
This commit is contained in:
commit
fa038af0c1
|
@ -67,8 +67,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, NetPlay
|
||||||
|
|
||||||
is_connected = false;
|
is_connected = false;
|
||||||
|
|
||||||
// why is false successful? documentation says true is
|
if (m_socket.Connect(port, address, 5) == sf::Socket::Done)
|
||||||
if (0 == m_socket.Connect(port, address, 5))
|
|
||||||
{
|
{
|
||||||
// send connect message
|
// send connect message
|
||||||
sf::Packet spac;
|
sf::Packet spac;
|
||||||
|
@ -126,8 +125,9 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, NetPlay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
PanicAlertT("Failed to Connect!");
|
PanicAlertT("Failed to Connect!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// called from ---NETPLAY--- thread
|
// called from ---NETPLAY--- thread
|
||||||
|
|
Loading…
Reference in New Issue