изменена отрисовка участков карты

This commit is contained in:
Данияр Аглиуллов 2022-10-05 01:15:54 +04:00
parent 75f994437e
commit d13c74aec0
2 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@
protected override void DrawBarrierPart(Graphics g, int i, int j) 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) 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() protected override void GenerateMap()
{ {

View File

@ -31,7 +31,7 @@ namespace AirBomber
protected override void DrawRoadPart(Graphics g, int i, int j) protected override void DrawRoadPart(Graphics g, int i, int j)
{ {
g.FillRectangle(roadColor, i * _size_x, j * _size_y, (i + 1) * _size_x, (j + 1) * _size_y); g.FillRectangle(roadColor, i * _size_x, j * _size_y, _size_x, _size_y);
} }
protected override void GenerateMap() protected override void GenerateMap()