mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
- fixes #1086
- removed outdated code from filesystem. Filesystem.json from 0.89b will no longer work.
This commit is contained in:
parent
572cfa50e7
commit
1fdacc4085
@ -956,8 +956,8 @@ void CAnimation::init(CDefFile * file)
|
||||
|
||||
BOOST_FOREACH(const JsonNode &frame, group["frames"].Vector())
|
||||
{
|
||||
source[groupID].push_back(frame);
|
||||
std::string filename = frame["file"].String();
|
||||
source[groupID].push_back(JsonNode());
|
||||
std::string filename = frame.String();
|
||||
source[groupID].back()["file"].String() = basepath + filename;
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ void CArmyTooltip::init(const InfoAboutArmy &army)
|
||||
continue;
|
||||
}
|
||||
|
||||
new CAnimImage("CPRSMALL", slot.second.type->idNumber + 2, 0, slotsPos[slot.first].x, slotsPos[slot.first].y);
|
||||
new CAnimImage("CPRSMALL", slot.second.type->iconIndex, 0, slotsPos[slot.first].x, slotsPos[slot.first].y);
|
||||
|
||||
std::string subtitle;
|
||||
if(army.army.isDetailed)
|
||||
|
@ -385,13 +385,6 @@ void CResourceHandler::loadFileSystem(const std::string &fsConfigURI)
|
||||
if (entry["type"].String() == "vid")
|
||||
loadArchive(mountPoint.first, entry, EResType::ARCHIVE_VID);
|
||||
|
||||
if (entry["type"].String() == "file") // for some compatibility, will be removed for 0.90
|
||||
{
|
||||
loadArchive(mountPoint.first, entry, EResType::ARCHIVE_LOD);
|
||||
loadArchive(mountPoint.first, entry, EResType::ARCHIVE_SND);
|
||||
loadArchive(mountPoint.first, entry, EResType::ARCHIVE_VID);
|
||||
}
|
||||
|
||||
tlog5 << " took " << timer.getDiff() << " ms.\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user