From 39cfe71bffeadefdac980d153fa41ee41b712a65 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sat, 20 Apr 2024 18:09:32 -0500 Subject: fix gpl comment --- src/display.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index 37970a2..28bd823 100644 --- a/src/display.c +++ b/src/display.c @@ -6,7 +6,7 @@ either version 3 of the License, or (at your option) any later version. urlg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have -received a copy of the GNU General Public License along with Foobar. If not, see +received a copy of the GNU General Public License along with urlg. If not, see . */ #include "display.h" @@ -136,11 +136,17 @@ void display_map(display_t *disp, struct map *map, ht_t *entities) if (map_i > 0 && map->map[(map_i - 1) * map->width + map_j] != WALL) { mvwprintw(disp->main, i, j, "█"); - } else if (map_i < map->width - 1 && map->map[(map_i + 1) * map->width + map_j] != WALL) { + } else if (map_i < map->width - 1 && + map->map[(map_i + 1) * map->width + map_j] != + WALL) { mvwprintw(disp->main, i, j, "█"); - } else if (map_j > 0 && map->map[map_i * map->width + map_j - 1] != WALL) { + } else if (map_j > 0 && + map->map[map_i * map->width + map_j - 1] != + WALL) { mvwprintw(disp->main, i, j, "█"); - } else if (map_j < map->width - 1 && map->map[map_i * map->width + map_j + 1] != WALL) { + } else if (map_j < map->width - 1 && + map->map[map_i * map->width + map_j + 1] != + WALL) { mvwprintw(disp->main, i, j, "█"); } else { mvwaddch(disp->main, i, j, ' '); -- cgit v1.2.3