From c9ca8f2b62b4994fa797272aecaf33f23253acae Mon Sep 17 00:00:00 2001 From: erihel Date: Fri, 28 Dec 2012 21:19:50 +0100 Subject: * Fixed segault when could not set sound pitch (bad logger call) * All 81 audio files should be loaded instead of 69 high quality * Changed volume ajustment formula to proper one --- src/sound/sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound/sound.h') diff --git a/src/sound/sound.h b/src/sound/sound.h index 566f415..518e2ad 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -168,7 +168,7 @@ class CSoundInterface * Function calls \link CSoundInterface::Cache() \endlink for each file */ inline void CacheAll(std::string path) { - for ( int i = 1; i < 69; i++ ) { + for ( int i = 1; i <= 81; i++ ) { std::stringstream filename; filename << path << "/sound" << std::setfill('0') << std::setw(3) << i << ".wav"; if ( !Cache(static_cast(i), filename.str()) ) -- cgit v1.2.3-1-g7c22