Add empty zone notice

* Display a notice when a map doesn't have a zone with a suggestion to assign one.
* Avoiding a default zone as many maps are added from updates and may not get their proper zones until the requisite data is found.
This commit is contained in:
aleos 2024-01-17 16:43:32 -05:00
parent 4a48b64566
commit 10e28babc9

View File

@ -532,6 +532,12 @@ void MapZoneDatabase::loadingFinished() {
}
}
}
// Check for maps with no zones
for (int i = 0; i < map_num; i++) {
if (map[i].zone == nullptr)
ShowNotice("MapZoneDatabase::loadingFinished: Map %s has no zone. Assigning a zone is highly encouraged.\n", map[i].name);
}
}
MapZoneDatabase map_zone_db;