From cb4ddfdee6e56a012db8426eb579ce6233be1431 Mon Sep 17 00:00:00 2001 From: RallyBlock Date: Mon, 9 Nov 2026 14:58:42 -0500 Subject: [PATCH] Fix ServerConnection global (Hello was never sent) --- client.cs | 8 ++++++-- ui.cs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client.cs b/client.cs index 95f81cf..460a0b9 100644 --- a/client.cs +++ b/client.cs @@ -59,7 +59,7 @@ function RPGClient_Aspect() function RPGClient_SendClick(%button, %pos) { - if (!isObject(serverConnection)) + if (!isObject(ServerConnection)) { return; } @@ -204,7 +204,7 @@ function RPGClient_ZoomOut(%val) function RPGClient_SendHello() { - if (!isObject(serverConnection)) + if (!isObject(ServerConnection)) { return; } @@ -222,6 +222,10 @@ function clientCmdRPG_Welcome(%serverProto, %accepted) { $RPGClient::Server = 1; } + else if (!%accepted) + { + echo("Client_RPG: server rejected handshake (server proto " @ %serverProto @ ")"); + } } function clientCmdRPG_TopDown(%on, %yaw, %dist) diff --git a/ui.cs b/ui.cs index e9be614..5ed973e 100644 --- a/ui.cs +++ b/ui.cs @@ -4,7 +4,7 @@ $RPGClient::MenuOpen = 0; function RPGClient_RunCmd(%cmd) { - if (!isObject(serverConnection)) + if (!isObject(ServerConnection)) { return; }