1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Always use ResourcePath for referencing images and animations

This commit is contained in:
Ivan Savenko
2023-08-23 15:07:50 +03:00
parent f79492e5b0
commit 823ffa7a07
201 changed files with 1390 additions and 1362 deletions

View File

@@ -81,15 +81,15 @@ void MapHandler::initTerrainGraphics()
std::map<std::string, std::string> riverFiles;
for(const auto & terrain : VLC->terrainTypeHandler->objects)
{
terrainFiles[terrain->getJsonKey()] = terrain->tilesFilename;
terrainFiles[terrain->getJsonKey()] = terrain->tilesFilename.getName();
}
for(const auto & river : VLC->riverTypeHandler->objects)
{
riverFiles[river->getJsonKey()] = river->tilesFilename;
riverFiles[river->getJsonKey()] = river->tilesFilename.getName();
}
for(const auto & road : VLC->roadTypeHandler->objects)
{
roadFiles[road->getJsonKey()] = road->tilesFilename;
roadFiles[road->getJsonKey()] = road->tilesFilename.getName();
}
loadFlipped(terrainAnimations, terrainImages, terrainFiles);