Sound Propagation Mode: fixed a crash when things were outside the map's geometry bounding box. Fixes #975

This commit is contained in:
biwa 2023-10-25 20:38:52 +02:00
parent af44086979
commit 55725bd2bb

View file

@ -186,6 +186,7 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
private void CreateBlockmap()
{
RectangleF area = MapSet.CreateArea(General.Map.Map.Vertices);
area = MapSet.IncreaseArea(area, General.Map.Map.Things);
blockmap = new BlockMap<BlockEntry>(area);
blockmap.AddLinedefsSet(General.Map.Map.Linedefs);
blockmap.AddSectorsSet(General.Map.Map.Sectors);