1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
- removed outdated code from filesystem. Filesystem.json from 0.89b will no longer work.
This commit is contained in:
Ivan Savenko 2012-09-27 13:23:33 +00:00
parent 572cfa50e7
commit 1fdacc4085
3 changed files with 3 additions and 10 deletions

View File

@ -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;
}
}

View File

@ -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)

View File

@ -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";
}
}