Details for commit 6ebbf1288

04-Apr-2021 (Sunday) at 07:01:32 EDT by Christoph Oelckers
Commit 6ebbf1288
Parents: 97a0cb2a1

On branches: 1.0.0_branch, 1.0.1_branch, 1.0.2_branch, 1.0.3_branch, cumulative-def, master, newrenderer
  • Duke/RR: Don't delete master switch sprites.

The sound system may play sounds on them after their deletion - this resulted in undefined behavior. To ensure properly defined behavior the sprite needs to be retained at least as long as the sound controller may still need it - which cannot be reliably determined so it has to be kept around forever. This would be easier if the sound controller code had proper start and stop events instead of inferring what to do from secondary information. Fixes #288.