Форматирование кода карт

This commit is contained in:
Мельников Игорь 2022-10-12 11:42:18 +04:00
parent c99b5e5b3c
commit 40fb3d4a26
3 changed files with 6 additions and 6 deletions

View File

@ -26,9 +26,9 @@
_map = new int[100, 100]; _map = new int[100, 100];
_size_x = (float)_width / _map.GetLength(0); _size_x = (float)_width / _map.GetLength(0);
_size_y = (float)_height / _map.GetLength(1); _size_y = (float)_height / _map.GetLength(1);
for (int i = 0; i < _map.GetLength(0); ++i) for (int i = 0; i < _map.GetLength(0); i++)
{ {
for (int j = 0; j < _map.GetLength(1); ++j) for (int j = 0; j < _map.GetLength(1); j++)
{ {
_map[i, j] = _freeRoad; _map[i, j] = _freeRoad;
} }

View File

@ -26,9 +26,9 @@
_map = new int[100, 100]; _map = new int[100, 100];
_size_x = (float)_width / _map.GetLength(0); _size_x = (float)_width / _map.GetLength(0);
_size_y = (float)_height / _map.GetLength(1); _size_y = (float)_height / _map.GetLength(1);
for (int i = 0; i < _map.GetLength(0); ++i) for (int i = 0; i < _map.GetLength(0); i++)
{ {
for (int j = 0; j < _map.GetLength(1); ++j) for (int j = 0; j < _map.GetLength(1); j++)
{ {
_map[i, j] = _freeRoad; _map[i, j] = _freeRoad;
} }

View File

@ -27,9 +27,9 @@
_size_x = (float)_width / _map.GetLength(0); _size_x = (float)_width / _map.GetLength(0);
_size_y = (float)_height / _map.GetLength(1); _size_y = (float)_height / _map.GetLength(1);
int counter = 0; int counter = 0;
for (int i = 0; i < _map.GetLength(0); ++i) for (int i = 0; i < _map.GetLength(0); i++)
{ {
for (int j = 0; j < _map.GetLength(1); ++j) for (int j = 0; j < _map.GetLength(1); j++)
{ {
_map[i, j] = _freeRoad; _map[i, j] = _freeRoad;
} }