mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
actually use default ip if none given
This commit is contained in:
parent
91e16a2c68
commit
f02294c3bd
@ -311,7 +311,12 @@ namespace QSB.Menus
|
||||
|
||||
private void Connect()
|
||||
{
|
||||
QSBNetworkManager.Instance.networkAddress = string.Concat((IPPopup as PopupInputMenu).GetInputText().Where(c => !char.IsWhiteSpace(c)));
|
||||
var address = string.Concat(((PopupInputMenu)IPPopup).GetInputText().Where(c => !char.IsWhiteSpace(c)));
|
||||
if (address.Length == 0)
|
||||
{
|
||||
address = QSBCore.DefaultServerIP;
|
||||
}
|
||||
QSBNetworkManager.Instance.networkAddress = address;
|
||||
QSBNetworkManager.Instance.StartClient();
|
||||
|
||||
if (QSBSceneManager.CurrentScene == OWScene.TitleScreen)
|
||||
|
Loading…
x
Reference in New Issue
Block a user