From cdb8884e45bbdd9d5b99ac1c6b986073a9ea6cdf Mon Sep 17 00:00:00 2001 From: Ricardo Lopes Date: Thu, 13 Feb 2020 21:50:48 +0100 Subject: [PATCH] Remove redundant sendtoall --- QSB/NetworkPlayer.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/QSB/NetworkPlayer.cs b/QSB/NetworkPlayer.cs index cd687e5b..cc65bd03 100644 --- a/QSB/NetworkPlayer.cs +++ b/QSB/NetworkPlayer.cs @@ -33,11 +33,7 @@ namespace QSB { SectorMessage msg = new SectorMessage(); msg.sectorId = (int) sector.GetName(); msg.senderId = netId.Value; - if (isServer) { - NetworkServer.SendToAll(SectorMessage.Type, msg); - } else { - connectionToServer.Send(SectorMessage.Type, msg); - } + connectionToServer.Send(SectorMessage.Type, msg); } }