Clear cached notifications when initializing a new map/mod
This commit is contained in:
@@ -97,6 +97,7 @@ namespace OpenRA
|
|||||||
soundFormat.GetPCMInputStream().ReadAllBytes(), soundFormat.Channels, soundFormat.SampleBits, soundFormat.SampleRate);
|
soundFormat.GetPCMInputStream().ReadAllBytes(), soundFormat.Channels, soundFormat.SampleBits, soundFormat.SampleRate);
|
||||||
sounds = new Cache<string, ISoundSource>(filename => LoadSound(filename, loadIntoMemory));
|
sounds = new Cache<string, ISoundSource>(filename => LoadSound(filename, loadIntoMemory));
|
||||||
currentSounds.Clear();
|
currentSounds.Clear();
|
||||||
|
currentNotifications.Clear();
|
||||||
video = null;
|
video = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user