optimization

This commit is contained in:
Baipyrus 2022-07-15 18:27:44 +02:00
parent ac57127fcc
commit 32459608d8

View File

@ -29,11 +29,10 @@ void shootRedirect(Socket other, string rest) {
void redirect(Socket other, string message) {
foreach (Lobby l in lobbies)
if (l.users.Contains(other)) {
if (l.users.Contains(other))
foreach (Socket u in l.users)
if (!u.Equals(other))
Connection.Send(u, message);
}
}
void onNewLobby(Socket other) {