Дофига исправлений
This commit is contained in:
@ -24,6 +24,7 @@ namespace DroneSimulator
|
||||
public int Azimuth = 0;
|
||||
}
|
||||
|
||||
private float Scale = 100;
|
||||
private DrawCallback drawCallback;
|
||||
private Bitmap MainArea = new Bitmap(4096, 2560);
|
||||
private List<DroneInfo> DroneList = new List<DroneInfo>();
|
||||
@ -161,6 +162,11 @@ namespace DroneSimulator
|
||||
const float TO_GRAD = 180 / MathF.PI;
|
||||
const float TO_RADI = MathF.PI / 180;
|
||||
|
||||
pos *= Scale;
|
||||
|
||||
pos.X += MainArea.Width / 2;
|
||||
pos.Y += MainArea.Height / 2;
|
||||
|
||||
foreach (var d in DroneList)
|
||||
{
|
||||
if (d.ID != id) continue;
|
||||
|
Reference in New Issue
Block a user