Inutile d'appeler le constructeur parent
This commit is contained in:
parent
62013124ab
commit
e371466edf
|
@ -12,9 +12,7 @@ Block::Block(float x, float y) : Object(x, y) {
|
|||
sprite.setOrigin(sf::Vector2f(Constants::GRID / 2, Constants::GRID / 2));
|
||||
}
|
||||
|
||||
Block::~Block() {
|
||||
Object::~Object();
|
||||
}
|
||||
Block::~Block() {}
|
||||
|
||||
void Block::draw(Manager& manager) {
|
||||
Object::draw(manager);
|
||||
|
|
|
@ -17,7 +17,6 @@ Game::Game() : accumulator(0.f) {
|
|||
}
|
||||
|
||||
Game::~Game() {
|
||||
View::~View();
|
||||
clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -9,9 +9,7 @@ Player::Player(float x, float y) : Object(x, y) {
|
|||
sprite.setOrigin(sf::Vector2f(getRadius(), getRadius()));
|
||||
}
|
||||
|
||||
Player::~Player() {
|
||||
Object::~Object();
|
||||
}
|
||||
Player::~Player() {}
|
||||
|
||||
sf::Vector2f Player::getForces(const Manager& manager, const std::vector<Object*>& objects) const {
|
||||
sf::Vector2f forces = Object::getForces(manager, objects);
|
||||
|
|
Loading…
Reference in New Issue