This commit is contained in:
2025-05-23 19:48:37 +03:00
parent 3d39f7da12
commit 2b595ba585
3 changed files with 66 additions and 11 deletions

View File

@ -183,9 +183,11 @@ namespace DroneSimulator
{
NetServerVisual.ReceiveData data = (NetServerVisual.ReceiveData)o;
int index = 0;
foreach (Drone d in AllDrones)
{
Drone.DataVisual v = d.GetVisual();
VisualData.VisualDrone v = d.GetVisual(AllDrones.Count, index++);
try { data.Client.Send(Drone.getBytes(v)); }
catch { }