diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-24 18:55:33 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-24 18:55:33 +0300 |
| commit | cdeb022ba7bc1c93ef7cceed5fdcc4002ca75e51 (patch) | |
| tree | c1b1aaca7a758ef5cc62afc6eefb4023f0bddcd0 | |
| parent | 1da880d277614f02eb80df4dc570da7b70787801 (diff) | |
| download | astar-cdeb022ba7bc1c93ef7cceed5fdcc4002ca75e51.tar.xz | |
Fix formatting
| -rw-r--r-- | bmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -50,10 +50,8 @@ void map_to_bmp(Map map, size_t map_width, size_t map_height, Position start, Po unsigned char* buf = malloc(imagesize); /* Draw the walls */ - for(int row = height - 1; row >= 0; row--) - { - for(int col = 0; col < width; col++) - { + for(int row = height - 1; row >= 0; row--) { + for(int col = 0; col < width; col++) { if (map[height - 1 - row][col] == WALL) { buf[row * width_in_bytes + col * 3 + 0] = 255; /* b */ buf[row * width_in_bytes + col * 3 + 1] = 255; /* g */ |
