mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-24 23:07:52 -05:00
Fix Region Map Editor incorrectly displaying certain MAPSEC data
This commit is contained in:
parent
d2febd99e9
commit
e7f91097b2
|
|
@ -14,6 +14,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
|
|||
- Fix click-drag map selections behaving unexpectedly when the cursor is outside the map grid.
|
||||
- Fix events being dragged in negative coordinates lagging behind the cursor.
|
||||
- Fix the shortcut for duplicating events working while on the Connections tab.
|
||||
- Fix the Region Map Editor incorrectly displaying whether a `MAPSEC` has region map data.
|
||||
- Fix warning not appearing when the log file exceeds maximum size.
|
||||
- Fix unnecessary resources being used to watch files.
|
||||
|
||||
|
|
|
|||
|
|
@ -2641,7 +2641,10 @@ void Project::setRegionMapEntries(const QHash<QString, MapSectionEntry> &entries
|
|||
QHash<QString, MapSectionEntry> Project::getRegionMapEntries() const {
|
||||
QHash<QString, MapSectionEntry> entries;
|
||||
for (auto it = this->locationData.constBegin(); it != this->locationData.constEnd(); it++) {
|
||||
entries[it.key()] = it.value().map;
|
||||
const MapSectionEntry regionMapData = it.value().map;
|
||||
if (regionMapData.valid) {
|
||||
entries[it.key()] = regionMapData;
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user