diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index a83fa57..b1fadf3 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -220,7 +220,11 @@ void Generatefield() { if (wallX > 0 && wallY > 0 && wallLength == 1) { - field[wallX][wallY] = '_'; + for (int i = wallX; i < +wallX + wallLength; i++) + { + field[i][wallY] = '_'; + } + } }