fix metatile label reading
This commit is contained in:
parent
f9bb6196e2
commit
4df4e6ddd7
1 changed files with 2 additions and 2 deletions
|
@ -1519,7 +1519,7 @@ bool Project::readTilesetMetatileLabels() {
|
|||
for (QString label : this->tilesetLabelsOrdered) {
|
||||
QString tilesetName = QString(label).replace("gTileset_", "");
|
||||
for (QString key : labels.keys()) {
|
||||
if (key.contains(tilesetName)) {
|
||||
if (key.contains(QString("METATILE_") + tilesetName)) {
|
||||
metatileLabelsMap[label][key] = labels[key];
|
||||
}
|
||||
}
|
||||
|
@ -1540,7 +1540,7 @@ void Project::loadTilesetMetatileLabels(Tileset* tileset) {
|
|||
metatile->label = labelName.replace(tilesetPrefix, "");
|
||||
} else {
|
||||
QString hexString = QString("%1").arg(metatileId, 3, 16, QChar('0')).toUpper();
|
||||
logError(QString("Metatile 0x%1 cannot be found in tileset '%2'").arg(hexString, tileset->name));
|
||||
logError(QString("Metatile 0x%1 (%2) cannot be found in tileset '%3'").arg(hexString, labelName, tileset->name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue