diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-08-15 03:43:00 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-08-15 03:43:00 +0200 |
commit | 6093d855b067841ea4c51b14ece7544f57d76f2b (patch) | |
tree | 01c0f232a678e6afb9ef9b46ad97e47769d0c9bb /src/audio/sampman.cpp | |
parent | sampman cosmetic fix (diff) | |
download | re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.gz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.bz2 re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.lz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.xz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.zst re3-6093d855b067841ea4c51b14ece7544f57d76f2b.zip |
Diffstat (limited to 'src/audio/sampman.cpp')
-rw-r--r-- | src/audio/sampman.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/sampman.cpp b/src/audio/sampman.cpp index abda71aa..de222493 100644 --- a/src/audio/sampman.cpp +++ b/src/audio/sampman.cpp @@ -1194,7 +1194,7 @@ cSampleManager::Initialise(void) int32 randval; if ( bUseRandomTable ) - randval = AudioManager.GetRandomTabe(1); + randval = AudioManager.GetRandomNumber(1); else randval = localtm->tm_sec * localtm->tm_min; @@ -1205,16 +1205,16 @@ cSampleManager::Initialise(void) randmp3 = randmp3->pNext; if ( bUseRandomTable ) - _CurMP3Pos = AudioManager.GetRandomTabe(0) % randmp3->nTrackLength; + _CurMP3Pos = AudioManager.GetRandomNumber(0) % randmp3->nTrackLength; else { if ( localtm->tm_sec > 0 ) { int32 s = localtm->tm_sec; - _CurMP3Pos = s*s*s*s*s*s*s*s % randmp3->nTrackLength; + _CurMP3Pos = s*s*s*s*s*s*s*s % randmp3->nTrackLength; } else - _CurMP3Pos = AudioManager.GetRandomTabe(0) % randmp3->nTrackLength; + _CurMP3Pos = AudioManager.GetRandomNumber(0) % randmp3->nTrackLength; } } else @@ -1293,7 +1293,7 @@ cSampleManager::CheckForAnAudioFileOnCD(void) strcpy(filepath, m_szCDRomRootPath); #endif // #if defined(GTA3_1_1_PATCH) - strcat(filepath, StreamedNameTable[AudioManager.GetRandomTabe(1) % TOTAL_STREAMED_SOUNDS]); + strcat(filepath, StreamedNameTable[AudioManager.GetRandomNumber(1) % TOTAL_STREAMED_SOUNDS]); FILE *f = fopen(filepath, "rb"); |