- the server log view is not cleared when saving the log (but old messages are removed when going over the max number of lines)
- log can be viewed in the server lobby, not just in-game - logging pump, reactor & battery state usage - GUIListBox.MouseRect doesn't return an empty rect anymore -> listboxes without selectable content can be scrolled with the mouse wheel
This commit is contained in:
@@ -65,6 +65,11 @@ namespace Barotrauma.Networking
|
||||
get { return entityEventManager; }
|
||||
}
|
||||
|
||||
public ServerLog ServerLog
|
||||
{
|
||||
get { return log; }
|
||||
}
|
||||
|
||||
public TimeSpan UpdateInterval
|
||||
{
|
||||
get { return updateInterval; }
|
||||
@@ -194,7 +199,7 @@ namespace Barotrauma.Networking
|
||||
GameMain.NetworkMember = null;
|
||||
yield return CoroutineStatus.Success;
|
||||
}
|
||||
|
||||
|
||||
if (config.EnableUPnP)
|
||||
{
|
||||
server.UPnP.ForwardPort(config.Port, "barotrauma");
|
||||
@@ -228,7 +233,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
updateInterval = new TimeSpan(0, 0, 0, 0, 150);
|
||||
|
||||
DebugConsole.NewMessage("Server started", Color.Green);
|
||||
Log("Server started", Color.Cyan);
|
||||
|
||||
GameMain.NetLobbyScreen.Select();
|
||||
started = true;
|
||||
|
||||
Reference in New Issue
Block a user