优化连接中继信息返回逻辑,简化直连状态判断
This commit is contained in:
@@ -222,13 +222,9 @@ std::string SteamNetworkingManager::getConnectionRelayInfo(HSteamNetConnection c
|
||||
{
|
||||
return "中继";
|
||||
}
|
||||
else if (info.m_nFlags & k_nSteamNetworkConnectionInfoFlags_Fast)
|
||||
{
|
||||
return "直连";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "未知";
|
||||
return "直连";
|
||||
}
|
||||
}
|
||||
return "N/A";
|
||||
|
||||
Reference in New Issue
Block a user