Sound Propagation Mode: fixed a problem where removed sector geometry was still shown when undoing/redoing. Fixes #992

This commit is contained in:
biwa 2023-12-02 15:20:50 +01:00
parent 0d4778be40
commit 53c4952986

View file

@ -435,6 +435,9 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
// To show things that will wake up we need to know the sector they are in
Parallel.ForEach(General.Map.Map.Things, t => t.DetermineSector(blockmap));
// Recreate the overlay geometry
UpdateData();
// Update
ResetSoundPropagation();
General.Interface.RedrawDisplay();
@ -465,6 +468,9 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
// To show things that will wake up we need to know the sector they are in
Parallel.ForEach(General.Map.Map.Things, t => t.DetermineSector(blockmap));
// Recreate the overlay geometry
UpdateData();
// Update
ResetSoundPropagation();
General.Interface.RedrawDisplay();