diff --git a/AirplaneWithRadar/AirplaneWithRadar/FoggySkyMap.cs b/AirplaneWithRadar/AirplaneWithRadar/FoggySkyMap.cs index 06f7553..603dd1f 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/FoggySkyMap.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/FoggySkyMap.cs @@ -19,9 +19,6 @@ namespace AirplaneWithRadar protected override void DrawBarrierPart(Graphics g, int i, int j) { g.FillRectangle(barrierColor, i * _size_x, j * _size_y, _size_x, _size_y); - //g.DrawLine(barrierColor, i * _size_x, j * _size_y, i * _size_x + _size_x, j * _size_y + (1 / 3) * _size_y); - //g.DrawLine(barrierColor, i * _size_x + _size_x, j * _size_y + (1 / 3) * _size_y, i * _size_x, j * _size_y + (2 * 3) * _size_y); - //g.DrawLine(barrierColor, i * _size_x, j * _size_y + 2 * _size_y, i * _size_x + _size_x, j * _size_y + 3 * _size_y); } protected override void DrawRoadPart(Graphics g, int i, int j) { diff --git a/AirplaneWithRadar/AirplaneWithRadar/SkyMap.cs b/AirplaneWithRadar/AirplaneWithRadar/SkyMap.cs index da33fdc..4eaad5b 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/SkyMap.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/SkyMap.cs @@ -22,11 +22,11 @@ namespace AirplaneWithRadar protected override void DrawBarrierPart(Graphics g, int i, int j) { - g.FillRectangle(barrierColor, i * _size_x, j * _size_y, i * (_size_x + 1), j * (_size_y + 1)); + g.FillRectangle(barrierColor, i * _size_x, j * _size_y, _size_x, _size_y); } protected override void DrawRoadPart(Graphics g, int i, int j) { - g.FillRectangle(roadColor, i * _size_x, j * _size_y, i * (_size_x + 1), j * (_size_y + 1)); + g.FillRectangle(roadColor, i * _size_x, j * _size_y, _size_x, _size_y); } protected override void GenerateMap() {