linux fixes

This commit is contained in:
2023-02-19 12:35:31 +02:00
parent 51dcad2cc4
commit b66976e029
15 changed files with 37 additions and 27 deletions

View File

@@ -52,6 +52,10 @@ namespace Game
NetworkManager_Cleanup();
var networkSettings = GameSettings.Load<NetworkSettings>();
networkSettings.Address = "any";
networkSettings.Port = DefaultServerPort;
GameSettings.LoadAsset<NetworkSettings>().SetInstance(networkSettings);
currentGameMode = new GameMode()
{
ServerAddress = "localhost",
@@ -76,7 +80,7 @@ namespace Game
failure = NetworkManager.StartServer();
if (failure)
{
Console.PrintError("Server startup failed.");
Console.PrintError($"Failed to start the server, unable to bind to address {networkSettings.Address}:{networkSettings.Port}");
return false;
}