feat: make 5999 the default serverport

This commit is contained in:
anavoi 2025-07-12 23:35:32 +02:00
commit 9599a6d652

View file

@ -18,7 +18,7 @@ public class GBSUGui : MonoBehaviour
readonly IInputSystem inputSystem = UnityInput.Current; readonly IInputSystem inputSystem = UnityInput.Current;
string serverip = null; string serverip = null;
int serverport = 0; int serverport = 5999;
string currentmap; string currentmap;
int vsync_switch; int vsync_switch;
bool hosting = false; bool hosting = false;
@ -78,7 +78,7 @@ Set CLI arguments: -ip, -port, -servername, -serverpassword
{ {
Application.Quit(0); Application.Quit(0);
} }
if (serverip != null && serverport != default) if (serverip != null)
{ {
if (GUI.Button(new Rect(20f, 260f, 170f, 30f), "Host")) if (GUI.Button(new Rect(20f, 260f, 170f, 30f), "Host"))
{ {