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:
@@ -18,7 +18,8 @@ namespace Barotrauma
|
||||
LevelGenerationParameters,
|
||||
RandomEvents,
|
||||
Missions,
|
||||
BackgroundCreaturePrefabs, BackgroundSpritePrefabs
|
||||
BackgroundCreaturePrefabs, BackgroundSpritePrefabs,
|
||||
Sounds
|
||||
}
|
||||
|
||||
public class ContentPackage
|
||||
|
||||
Reference in New Issue
Block a user