From 029f783ce5fe0254493a4341b93bf16baca92916 Mon Sep 17 00:00:00 2001 From: Jason Lautzenheiser Date: Sat, 19 Mar 2022 10:57:07 -0400 Subject: [PATCH] I7 Export - Region name is reserved word, room not assigned (#552) If the region is a reserved word, any rooms would be disconnected from that region (which would have a new name assigned during export) --- Export/Languages/Inform7Exporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Export/Languages/Inform7Exporter.cs b/Export/Languages/Inform7Exporter.cs index 7f9c66db..c4c28cd1 100644 --- a/Export/Languages/Inform7Exporter.cs +++ b/Export/Languages/Inform7Exporter.cs @@ -77,8 +77,8 @@ protected override void ExportContent(TextWriter writer) { writer.WriteLine(); // export each location foreach (var location in LocationsInExportOrder) { - if (location.Room.Region != region.ExportName) continue; - anyConditionalExits |= printThisLoc(writer, location); + if ((location.Room.Region == region.Region.RegionName) ||(location.Room.Region == region.ExportName)) + anyConditionalExits |= printThisLoc(writer, location); } }