Acabat de renamar, encara que he descobert cosetes i tindré que fer altra pasaeta
Actualitzat stb_image.h a la última versió
This commit is contained in:
@@ -35,6 +35,10 @@ AnimatedFile loadAnimationFromFile(std::shared_ptr<Texture> texture, std::string
|
||||
buffer.counter = 0;
|
||||
buffer.current_frame = 0;
|
||||
buffer.completed = false;
|
||||
buffer.name = "";
|
||||
buffer.speed = 5;
|
||||
buffer.loop = 0;
|
||||
buffer.frames.clear();
|
||||
|
||||
do
|
||||
{
|
||||
@@ -44,7 +48,7 @@ AnimatedFile loadAnimationFromFile(std::shared_ptr<Texture> texture, std::string
|
||||
int pos = line.find("=");
|
||||
|
||||
// Procesa las dos subcadenas
|
||||
if (pos != (int)line.npos)
|
||||
if (pos != static_cast<int>(line.npos))
|
||||
{
|
||||
if (line.substr(0, pos) == "name")
|
||||
{
|
||||
@@ -366,6 +370,10 @@ bool AnimatedSprite::loadFromVector(std::vector<std::string> *source)
|
||||
buffer.counter = 0;
|
||||
buffer.current_frame = 0;
|
||||
buffer.completed = false;
|
||||
buffer.name = "";
|
||||
buffer.speed = 5;
|
||||
buffer.loop = 0;
|
||||
buffer.frames.clear();
|
||||
|
||||
do
|
||||
{
|
||||
@@ -377,7 +385,7 @@ bool AnimatedSprite::loadFromVector(std::vector<std::string> *source)
|
||||
int pos = line.find("=");
|
||||
|
||||
// Procesa las dos subcadenas
|
||||
if (pos != (int)line.npos)
|
||||
if (pos != static_cast<int>(line.npos))
|
||||
{
|
||||
if (line.substr(0, pos) == "name")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user