stop music and video when disposing the world
This commit is contained in:
@@ -387,6 +387,9 @@ namespace OpenRA
|
|||||||
|
|
||||||
frameEndActions.Clear();
|
frameEndActions.Clear();
|
||||||
|
|
||||||
|
Sound.StopMusic();
|
||||||
|
Sound.StopVideo();
|
||||||
|
|
||||||
// Dispose newer actors first, and the world actor last
|
// Dispose newer actors first, and the world actor last
|
||||||
foreach (var a in actors.Reverse())
|
foreach (var a in actors.Reverse())
|
||||||
a.Dispose();
|
a.Dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user