eliminat el punter al renderer de 50.000 llocs
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
#include "item.h"
|
||||
|
||||
// Constructor
|
||||
Item::Item(int kind, float x, float y, Texture *texture, std::vector<std::string> *animation, SDL_Renderer *renderer)
|
||||
Item::Item(int kind, float x, float y, Texture *texture, std::vector<std::string> *animation)
|
||||
{
|
||||
sprite = new AnimatedSprite(texture, renderer, "", animation);
|
||||
sprite = new AnimatedSprite(texture, "", animation);
|
||||
|
||||
this->kind = kind;
|
||||
enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user