cleanup
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user