Commit d34c48c8 authored by Neoony's avatar Neoony
Browse files

v0.1 WIP18 -Fix lobby trying to redirect sourceTV

parent fa2a6374
Pipeline #4647 passed with stages
in 4 minutes and 41 seconds
......@@ -21,7 +21,7 @@
//#include <emputils>
#include <socket>
#define PluginVer "v0.1 WIP17"
#define PluginVer "v0.1 WIP18"
public Plugin myinfo =
{
......@@ -225,19 +225,23 @@ public void OnClientPutInServer(int Client)
public bool OnClientConnect(int Client)
{
GetConVarString(l_forceredirect, ForceRedirectAddr, sizeof(ForceRedirectAddr));
int ForceRedirectAddrInt = GetConVarInt(l_forceredirect);
if (GetConVarInt(l_debug) == 1)
{
PrintToServer("Client %i connecting", Client);
}
if (ForceRedirectAddrInt != 0)
{
ForceRedirectSingle(Client);
}
if (ForceRedirectAddrInt == 0)
if (IsClientSourceTV(Client) == false && IsFakeClient(Client) == false)
{
CheckPopulatedServersSinglePlayer(Client);
GetConVarString(l_forceredirect, ForceRedirectAddr, sizeof(ForceRedirectAddr));
int ForceRedirectAddrInt = GetConVarInt(l_forceredirect);
if (GetConVarInt(l_debug) == 1)
{
PrintToServer("Client %i connecting", Client);
}
if (ForceRedirectAddrInt != 0)
{
ForceRedirectSingle(Client);
}
if (ForceRedirectAddrInt == 0)
{
CheckPopulatedServersSinglePlayer(Client);
}
return true;
}
return true;
}
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "v0.1 WIP17"
"Latest" "v0.1 WIP18"
}
"Notes" "First release"
......@@ -34,6 +34,7 @@
"Notes" "WIP16: Show maps in server vote choices"
"Notes" "WIP17: Apply Vanilla server IP fix only on backup lobby server"
"Notes" "WIP17: Added more messages showing in server console when l_debug is 1"
"Notes" "WIP18: Fix lobby trying to redirect sourceTV"
}
"Files"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment