New Projectiles class
Refactor of Bullet class Different method of shooting.
This commit is contained in:
@@ -30,7 +30,7 @@ std::vector<Bullet> &Actor::getBullets() {
|
||||
|
||||
void Actor::updateBullets() {
|
||||
for (auto& bullet : bullets) {
|
||||
if(bullet.getStatus()) {
|
||||
if(bullet.isOutOfBounds()) {
|
||||
bullets.erase(bullets.begin());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user