mirror of
https://github.com/huderlem/porymap.git
synced 2026-07-02 00:02:04 -05:00
Fix incorrect log comments, update manual
This commit is contained in:
parent
35d5851a8f
commit
900ff0afd9
|
|
@ -97,6 +97,8 @@ In addition to these files, there are some specific symbol and macro names that
|
|||
``define_pals_total``, ``NUM_PALS_TOTAL``,
|
||||
``define_tiles_per_metatile``, ``NUM_TILES_PER_METATILE``, to determine if triple-layer metatiles are in use. Values other than 8 or 12 are ignored
|
||||
``define_map_size``, ``MAX_MAP_DATA_SIZE``, to limit map dimensions
|
||||
``define_map_offset_width``, ``MAP_OFFSET_W``, to limit map dimensions
|
||||
``define_map_offset_height``, ``MAP_OFFSET_H``, to limit map dimensions
|
||||
``define_mask_metatile``, ``MAPGRID_METATILE_ID_MASK``, optionally read to get settings on ``Maps`` tab
|
||||
``define_mask_collision``, ``MAPGRID_COLLISION_MASK``, optionally read to get settings on ``Maps`` tab
|
||||
``define_mask_elevation``, ``MAPGRID_ELEVATION_MASK``, optionally read to get settings on ``Maps`` tab
|
||||
|
|
|
|||
|
|
@ -2129,14 +2129,14 @@ bool Project::readFieldmapProperties() {
|
|||
if (it != defines.end()) {
|
||||
*dest = it.value();
|
||||
if (*dest < min) {
|
||||
logWarn(QString("Value for tileset property '%1' (%2) is below the minimum (%3). Defaulting to minimum.").arg(name).arg(*dest).arg(min));
|
||||
logWarn(QString("Value for '%1' (%2) is below the minimum (%3). Defaulting to minimum.").arg(name).arg(*dest).arg(min));
|
||||
*dest = min;
|
||||
} else if (*dest > max) {
|
||||
logWarn(QString("Value for tileset property '%1' (%2) is above the maximum (%3). Defaulting to maximum.").arg(name).arg(*dest).arg(max));
|
||||
logWarn(QString("Value for '%1' (%2) is above the maximum (%3). Defaulting to maximum.").arg(name).arg(*dest).arg(max));
|
||||
*dest = max;
|
||||
}
|
||||
} else {
|
||||
logWarn(QString("Value for tileset property '%1' not found. Using default (%2) instead.").arg(name).arg(*dest));
|
||||
logWarn(QString("Value for '%1' not found. Using default (%2) instead.").arg(name).arg(*dest));
|
||||
}
|
||||
};
|
||||
loadDefine(numPalsTotalName, &Project::num_pals_total, 2, INT_MAX); // In reality the max would be 16, but as far as Porymap is concerned it doesn't matter.
|
||||
|
|
@ -2166,7 +2166,7 @@ bool Project::readFieldmapProperties() {
|
|||
this->defaultMapDimension = qFloor((qSqrt(4 * this->maxMapDataSize + 1) - (w + h)) / 2);
|
||||
}
|
||||
} else {
|
||||
logWarn(QString("Value for map property '%1' of %2 is too small to support a 1x1 map. Must be at least %3. Using default (%4) instead.")
|
||||
logWarn(QString("Value for '%1' (%2) is too small to support a 1x1 map. Must be at least %3. Using default (%4) instead.")
|
||||
.arg(maxMapSizeName)
|
||||
.arg(it.value())
|
||||
.arg(min)
|
||||
|
|
@ -2174,7 +2174,7 @@ bool Project::readFieldmapProperties() {
|
|||
}
|
||||
}
|
||||
else {
|
||||
logWarn(QString("Value for map property '%1' not found. Using default (%2) instead.")
|
||||
logWarn(QString("Value for '%1' not found. Using default (%2) instead.")
|
||||
.arg(maxMapSizeName)
|
||||
.arg(this->maxMapDataSize));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user