optimization
This commit is contained in:
parent
ac57127fcc
commit
32459608d8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user