aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-10 22:16:44 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-10 22:16:44 +0300
commitd676ac91b1906f5de8695facb6b96bf0509e6e1f (patch)
tree5bfe0fb9e89721508202296e87acf7b53c9f011d /map.c
parent221797b2506bc54483042b8a7beb0aa016f4f8e6 (diff)
downloadastar-d676ac91b1906f5de8695facb6b96bf0509e6e1f.tar.xz
Clean up trailing whitespaces
Diffstat (limited to 'map.c')
-rw-r--r--map.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/map.c b/map.c
index cbfe333..3bd7500 100644
--- a/map.c
+++ b/map.c
@@ -22,7 +22,7 @@ Map empty_map(size_t width, size_t height) {
for (size_t row = 0; row < height; row++) {
map[row] = malloc(sizeof(MapTile) * width);
if (map[row] == NULL) return NULL;
- memset(map[row], 0, width*sizeof(MapTile));
+ memset(map[row], 0, width*sizeof(MapTile));
}
return map;
@@ -260,16 +260,16 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa
for (size_t j = 0; j < width; j++) {
int color_pair = 0; /* The color pair of the current char */
switch (map[i][j]) {
- case EMPTY:
+ case EMPTY:
if (visited != NULL && visited[i][j])
color_pair = COLOR_PAIR(VISITED_COLOR);
- else
+ else
color_pair = COLOR_PAIR(EMPTY_COLOR);
- c = EMPTY_CHAR;
+ c = EMPTY_CHAR;
break;
- case WALL:
+ case WALL:
color_pair = COLOR_PAIR(WALL_COLOR);
- c = WALL_CHAR;
+ c = WALL_CHAR;
break;
}
@@ -291,7 +291,7 @@ void draw_map(Map map, size_t width, size_t height, Position start, Position goa
}
}
}
-
+
/* Render the frontier */
if (frontier != NULL) {
attron(COLOR_PAIR(FRONTIER_COLOR));