mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
- fixes #1086
- removed outdated code from filesystem. Filesystem.json from 0.89b will no longer work.
This commit is contained in:
@ -956,8 +956,8 @@ void CAnimation::init(CDefFile * file)
|
|||||||
|
|
||||||
BOOST_FOREACH(const JsonNode &frame, group["frames"].Vector())
|
BOOST_FOREACH(const JsonNode &frame, group["frames"].Vector())
|
||||||
{
|
{
|
||||||
source[groupID].push_back(frame);
|
source[groupID].push_back(JsonNode());
|
||||||
std::string filename = frame["file"].String();
|
std::string filename = frame.String();
|
||||||
source[groupID].back()["file"].String() = basepath + filename;
|
source[groupID].back()["file"].String() = basepath + filename;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ void CArmyTooltip::init(const InfoAboutArmy &army)
|
|||||||
continue;
|
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;
|
std::string subtitle;
|
||||||
if(army.army.isDetailed)
|
if(army.army.isDetailed)
|
||||||
|
@ -385,13 +385,6 @@ void CResourceHandler::loadFileSystem(const std::string &fsConfigURI)
|
|||||||
if (entry["type"].String() == "vid")
|
if (entry["type"].String() == "vid")
|
||||||
loadArchive(mountPoint.first, entry, EResType::ARCHIVE_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";
|
tlog5 << " took " << timer.getDiff() << " ms.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user