Fix loopback

This commit is contained in:
momo5502 2016-06-15 12:38:06 +02:00
parent 546c60c7c7
commit 625461e6ad
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ namespace Components
void* cxt = Game::UI_GetContext(a1); void* cxt = Game::UI_GetContext(a1);
std::string addressText = Network::Address(*Game::connectedHost).GetString(); std::string addressText = Network::Address(*Game::connectedHost).GetString();
if (addressText == "0.0.0.0:0") addressText = "Listen Server"; if (addressText == "0.0.0.0:0" || addressText == "loopback") addressText = "Listen Server";
// get x positions // get x positions
float fontSize = 0.35f; float fontSize = 0.35f;

View File

@ -693,7 +693,7 @@ namespace Components
if (Dvar::Var("cl_ingame").Get<bool>()) if (Dvar::Var("cl_ingame").Get<bool>())
{ {
std::string addressText = Network::Address(*Game::connectedHost).GetString(); std::string addressText = Network::Address(*Game::connectedHost).GetString();
if (addressText != "0.0.0.0:0") if (addressText != "0.0.0.0:0" && addressText != "loopback")
{ {
ServerList::StoreFavourite(addressText); ServerList::StoreFavourite(addressText);
} }