summaryrefslogtreecommitdiffstats
path: root/src/sound/sound.h
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2012-12-28 21:19:50 +0100
committererihel <erihel@gmail.com>2012-12-28 21:19:50 +0100
commitc9ca8f2b62b4994fa797272aecaf33f23253acae (patch)
treed2fcbec65f5b64cf691ac0186f11f6cba6e453c5 /src/sound/sound.h
parent3e4c1a1ad88456ebf201b257b91847bd995c8773 (diff)
downloadcolobot-c9ca8f2b62b4994fa797272aecaf33f23253acae.tar.gz
colobot-c9ca8f2b62b4994fa797272aecaf33f23253acae.tar.bz2
colobot-c9ca8f2b62b4994fa797272aecaf33f23253acae.zip
* 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
Diffstat (limited to 'src/sound/sound.h')
-rw-r--r--src/sound/sound.h2
1 files changed, 1 insertions, 1 deletions
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<Sound>(i), filename.str()) )