fix whale delete
This commit is contained in:
@@ -53,7 +53,7 @@ bool Whale::shouldBeRemoved() const noexcept {
|
||||
if (moving_right) {
|
||||
return x > static_cast<float>(aquarium.getWidth());
|
||||
} else {
|
||||
return (x + static_cast<float>(first_frame[0].length())) < 0;
|
||||
return (x + static_cast<float>(first_frame[6].length())) < 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user