Skip to content

Commit

Permalink
Growbrew Proxy V2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
playingoDEERUX committed Nov 11, 2020
1 parent ed1bf82 commit 7763d0d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions GrowbrewProxy/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,25 +332,6 @@ public static void ConnectToServer(ref ENetPeer peer, UserData userData = null,
peer = client.Connect(new IPEndPoint(IPAddress.Parse(ip), port), 2, 0);
}
}
if (userData != null)
{
Console.WriteLine("(INFO): Overwriting user data...");
peer.UnsetUserData();
peer.SetUserData(userData);
}

/*if (!FirstInitialUseOfBot && userData != null)
{
lock (botPeers)
{
int ind = GetFreeBotPeerIndex();
if (ind > -1)
botPeers[ind] = peer;
else
Console.WriteLine("[BOT] an error occcured, GetFreeBotPeerIndex() returned -1, that means no location in the array was free to use??");
}
// try to get an available array location for the bot
}*/
}

private void Host_OnConnect(ENetPeer peer)
Expand Down

0 comments on commit 7763d0d

Please sign in to comment.