diff --git a/src/Aquarium.cpp b/src/Aquarium.cpp index 99d483d..65010e9 100644 --- a/src/Aquarium.cpp +++ b/src/Aquarium.cpp @@ -173,9 +173,6 @@ void Aquarium::clearCurrentFrame() { void Aquarium::drawToFrame(int y, int x, const std::string &line, const std::string &colorLine) { - if (y < 0 || y >= height) - return; - const size_t len = std::min(line.size(), colorLine.size()); for (size_t j = 0; j < len; ++j) { diff --git a/src/Bubble.cpp b/src/Bubble.cpp index 3940a32..40cbd5a 100644 --- a/src/Bubble.cpp +++ b/src/Bubble.cpp @@ -18,6 +18,7 @@ void Bubble::updateFrame() { current_mask[0] = BUBBLE_COLOR; } +// Waterline collision bool Bubble::shouldBeRemoved() const noexcept { return y < 10; } // Bubbles don't create replacements