commit 729efd457b15b460208011abe362a73b0b41cf71
parent bc5b7b654be150bfefe7694ce3635a1a6fca17f0
Author: amrfti <andrew@kloet.net>
Date: Tue, 8 Jul 2025 13:25:56 -0400
cleanup
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git 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
@@ -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