Fix ServerConnection global (Hello was never sent)

This commit is contained in:
RallyBlock committed 2026-11-09 14:58:42 -05:00
1 parent f54039af89
commit cb4ddfdee6
2 files changed
+7 -3

No files matched your search

+6 -2
View File
@@ -59,7 +59,7 @@ function RPGClient_Aspect()
function RPGClient_SendClick(%button, %pos) function RPGClient_SendClick(%button, %pos)
{ {
if (!isObject(serverConnection)) if (!isObject(ServerConnection))
{ {
return; return;
} }
@@ -204,7 +204,7 @@ function RPGClient_ZoomOut(%val)
function RPGClient_SendHello() function RPGClient_SendHello()
{ {
if (!isObject(serverConnection)) if (!isObject(ServerConnection))
{ {
return; return;
} }
@@ -222,6 +222,10 @@ function clientCmdRPG_Welcome(%serverProto, %accepted)
{ {
$RPGClient::Server = 1; $RPGClient::Server = 1;
} }
else if (!%accepted)
{
echo("Client_RPG: server rejected handshake (server proto " @ %serverProto @ ")");
}
} }
function clientCmdRPG_TopDown(%on, %yaw, %dist) function clientCmdRPG_TopDown(%on, %yaw, %dist)
+1 -1
View File
@@ -4,7 +4,7 @@ $RPGClient::MenuOpen = 0;
function RPGClient_RunCmd(%cmd) function RPGClient_RunCmd(%cmd)
{ {
if (!isObject(serverConnection)) if (!isObject(ServerConnection))
{ {
return; return;
} }