Commit de vesprà tirada a la brossa
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "explosions.h"
|
||||
#include <utility> // for move
|
||||
#include "animated_sprite.h" // for AnimatedSprite
|
||||
#include "animated_sprite.h" // for SpriteAnimated
|
||||
class Texture; // lines 3-3
|
||||
|
||||
// Constructor
|
||||
@@ -51,7 +51,7 @@ void Explosions::addTexture(int size, std::shared_ptr<Texture> texture, std::vec
|
||||
void Explosions::add(int x, int y, int size)
|
||||
{
|
||||
const int index = getIndexBySize(size);
|
||||
auto sprite = std::make_unique<AnimatedSprite>(textures_[index].texture, "", textures_[index].animation);
|
||||
auto sprite = std::make_unique<AnimatedSprite>(textures_[index].texture, textures_[index].animation);
|
||||
sprite->setPos(x, y);
|
||||
explosions_.push_back(std::move(sprite));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user