Browse Source

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.

aleos 1 year ago
parent
commit
10e28babc9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/map/map.cpp

+ 6 - 0
src/map/map.cpp

@@ -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;