mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed wrong animation paths
This commit is contained in:
parent
b964a53abe
commit
2f7968b803
@ -1468,6 +1468,9 @@ CAnimation::CAnimation(std::string Name, bool Compressed):
|
|||||||
CDefFile * file = getFile();
|
CDefFile * file = getFile();
|
||||||
init(file);
|
init(file);
|
||||||
delete file;
|
delete file;
|
||||||
|
|
||||||
|
if(source.empty())
|
||||||
|
logAnim->error("Animation %s failed to load", Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
CAnimation::CAnimation():
|
CAnimation::CAnimation():
|
||||||
|
@ -101,6 +101,8 @@ void ObjectTemplate::afterLoadFixup()
|
|||||||
usedTiles[0][0] = VISITABLE;
|
usedTiles[0][0] = VISITABLE;
|
||||||
visitDir = 0xFF;
|
visitDir = 0xFF;
|
||||||
}
|
}
|
||||||
|
boost::algorithm::replace_all(animationFile, "\\", "/");
|
||||||
|
boost::algorithm::replace_all(editorAnimationFile, "\\", "/");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectTemplate::readTxt(CLegacyConfigParser & parser)
|
void ObjectTemplate::readTxt(CLegacyConfigParser & parser)
|
||||||
|
Loading…
Reference in New Issue
Block a user