From 8981609265be0f70ff162986cd1a37001b5f213d Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Fri, 15 Mar 2024 10:52:24 +0100 Subject: [PATCH] Remove 2-tile-tall hole against the ceiling. Maybe I shuld remove the ceiling --- src/scene_hellcross.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene_hellcross.cpp b/src/scene_hellcross.cpp index 2c7ed77b..7a0213f4 100644 --- a/src/scene_hellcross.cpp +++ b/src/scene_hellcross.cpp @@ -77,7 +77,7 @@ void HellCrossScene::RandomizeMap() { for (int y = 0; y < map.Height(); y++) { for (int x = start_x; x < map.Width(); x++) { Tile t = Tile::NONE; - if ((y != 1) && (y == 0 || map.GetTile(x, y - 1) == Tile::NONE) && (y < 3 || map.GetTile(x, y - 3) == Tile::NONE)) { // do not stack solid blocks, do not create 2-tile-tall gaps + if ((y != 2) && (y == 0 || map.GetTile(x, y - 1) == Tile::NONE) && (y < 3 || map.GetTile(x, y - 3) == Tile::NONE)) { // do not stack solid blocks, do not create 2-tile-tall gaps if (x > 0 && map.GetTile(x - 1, y) != Tile::NONE && Rand::rollf() < 0.33f) { t = map.GetTile(x - 1, y); // continue previous block type so we create horizontal platforms } else if (y != map.Height()-1 && Rand::rollf() < 0.05f) {