Fix ServerConnection global (Hello was never sent)
This commit is contained in:
1 parent
f54039af89
commit
cb4ddfdee6
2 files changed
+7
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user