Relax spacing requirements in heal location data table
This commit is contained in:
parent
ae1c7e8d9a
commit
56d53d2693
2 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
|
||||||
- Stop the Tileset Editor from scrolling to the initially selected metatile when saving.
|
- Stop the Tileset Editor from scrolling to the initially selected metatile when saving.
|
||||||
- Fix `0x0`/`NULL` appearing more than once in the scripts dropdown.
|
- Fix `0x0`/`NULL` appearing more than once in the scripts dropdown.
|
||||||
- Fix the selection outline sticking in single-tile mode on the Prefab tab.
|
- Fix the selection outline sticking in single-tile mode on the Prefab tab.
|
||||||
|
- Fix heal location data being cleared if certain spaces aren't used in the table.
|
||||||
- Fix bad URL color contrast on dark themes.
|
- Fix bad URL color contrast on dark themes.
|
||||||
|
|
||||||
## [5.1.1] - 2023-02-20
|
## [5.1.1] - 2023-02-20
|
||||||
|
|
|
@ -2025,7 +2025,7 @@ bool Project::readHealLocations() {
|
||||||
|
|
||||||
for (const auto idName : constants) {
|
for (const auto idName : constants) {
|
||||||
// Create regex pattern for e.g. "SPAWN_PALLET_TOWN - 1] = "
|
// Create regex pattern for e.g. "SPAWN_PALLET_TOWN - 1] = "
|
||||||
const QString initializerPattern = QString("%1\\s*- 1\\]\\s* = ").arg(idName);
|
const QString initializerPattern = QString("%1\\s*-\\s*1\\s*\\]\\s*=\\s*").arg(idName);
|
||||||
|
|
||||||
// Expression for location data, e.g. "SPAWN_PALLET_TOWN - 1] = {MAP_GROUP(PALLET_TOWN), MAP_NUM(PALLET_TOWN), x, y}"
|
// Expression for location data, e.g. "SPAWN_PALLET_TOWN - 1] = {MAP_GROUP(PALLET_TOWN), MAP_NUM(PALLET_TOWN), x, y}"
|
||||||
QRegularExpression locationRegex(QString("%1\\{%2,%3}").arg(initializerPattern).arg(mapPattern).arg(coordPattern));
|
QRegularExpression locationRegex(QString("%1\\{%2,%3}").arg(initializerPattern).arg(mapPattern).arg(coordPattern));
|
||||||
|
|
Loading…
Reference in a new issue