SoundPlayer.GetSound doesn't attempt to load the sound if a sound with a matching tag is not found, because otherwise configuring limb hit sounds and such with the file path instead of the tag will cause a new sound instance to be created every time the sound is played (and these instances are never freed). + Sound config files can be now configured in content packages.
This commit is contained in:
@@ -52,5 +52,6 @@
|
||||
<LevelGenerationParameters file="Content/Map/LevelGenerationParameters.xml" />
|
||||
<Missions file="Content/Missions.xml" />
|
||||
<Jobs file="Content/Jobs.xml" />
|
||||
<Sounds file="Content/Sounds/sounds.xml" />
|
||||
<Executable file="Barotrauma.exe" />
|
||||
</contentpackage>
|
||||
|
||||
Reference in New Issue
Block a user