aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-24 18:55:33 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-24 18:55:33 +0300
commitcdeb022ba7bc1c93ef7cceed5fdcc4002ca75e51 (patch)
treec1b1aaca7a758ef5cc62afc6eefb4023f0bddcd0
parent1da880d277614f02eb80df4dc570da7b70787801 (diff)
downloadastar-cdeb022ba7bc1c93ef7cceed5fdcc4002ca75e51.tar.xz
Fix formatting
-rw-r--r--bmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bmp.c b/bmp.c
index b44ea39..601cdfe 100644
--- a/bmp.c
+++ b/bmp.c
@@ -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 */