fix(editor): exportContentPack uses zoneManifest.mapId instead of hardcoded 9000

Users who set a custom Map ID via the Zone Metadata panel saw it ignored
when exporting the WCP — the pack info would always say mapId=9000.
Now reads from zoneManifest_, falling back to 9000 only when the field
is unset (0).
This commit is contained in:
Kelsi 2026-05-06 03:41:29 -07:00
parent f856a90281
commit 28c63cb6d9

View file

@ -1386,7 +1386,9 @@ void EditorApp::exportContentPack(const std::string& destPath) {
info.author = project_.author.empty() ? "Kelsi Davis" : project_.author;
info.description = project_.description.empty()
? "Custom zone created with Wowee World Editor" : project_.description;
info.mapId = 9000;
// Honor the user-edited Map ID from the zone manifest panel rather than
// always emitting 9000.
info.mapId = zoneManifest_.mapId != 0 ? zoneManifest_.mapId : 9000;
if (ContentPacker::packZone(dir, loadedMap_, destPath, info))
showToast("Content pack exported: " + destPath);
else