This commit is contained in:
2025-07-08 13:25:56 -04:00
parent 5bae9a07af
commit 8302503333
2 changed files with 1 additions and 3 deletions

View File

@@ -173,9 +173,6 @@ void Aquarium::clearCurrentFrame() {
void Aquarium::drawToFrame(int y, int x, const std::string &line, void Aquarium::drawToFrame(int y, int x, const std::string &line,
const std::string &colorLine) { const std::string &colorLine) {
if (y < 0 || y >= height)
return;
const size_t len = std::min(line.size(), colorLine.size()); const size_t len = std::min(line.size(), colorLine.size());
for (size_t j = 0; j < len; ++j) { for (size_t j = 0; j < len; ++j) {

View File

@@ -18,6 +18,7 @@ void Bubble::updateFrame() {
current_mask[0] = BUBBLE_COLOR; current_mask[0] = BUBBLE_COLOR;
} }
// Waterline collision
bool Bubble::shouldBeRemoved() const noexcept { return y < 10; } bool Bubble::shouldBeRemoved() const noexcept { return y < 10; }
// Bubbles don't create replacements // Bubbles don't create replacements