diff options
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 14 |
1 files changed, 10 insertions, 4 deletions
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 <https://www.gnu.org/licenses/>. */ #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, ' '); |