mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +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();
|
||||
init(file);
|
||||
delete file;
|
||||
|
||||
if(source.empty())
|
||||
logAnim->error("Animation %s failed to load", Name);
|
||||
}
|
||||
|
||||
CAnimation::CAnimation():
|
||||
|
@ -101,6 +101,8 @@ void ObjectTemplate::afterLoadFixup()
|
||||
usedTiles[0][0] = VISITABLE;
|
||||
visitDir = 0xFF;
|
||||
}
|
||||
boost::algorithm::replace_all(animationFile, "\\", "/");
|
||||
boost::algorithm::replace_all(editorAnimationFile, "\\", "/");
|
||||
}
|
||||
|
||||
void ObjectTemplate::readTxt(CLegacyConfigParser & parser)
|
||||
|
Loading…
Reference in New Issue
Block a user