diff options
| author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-14 14:01:24 +0300 |
|---|---|---|
| committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-14 14:01:24 +0300 |
| commit | 9d4d83db0d9b9bd2921972a030a0c53566688fbb (patch) | |
| tree | 6e25a7d88c3afb2afb07a4025da316d2b3d0c945 /src/audio/sampman_oal.cpp | |
| parent | fixed skinned cutscene head (diff) | |
| download | re3-9d4d83db0d9b9bd2921972a030a0c53566688fbb.tar.gz | |
some fixes
Diffstat (limited to 'src/audio/sampman_oal.cpp')
| -rw-r--r-- | src/audio/sampman_oal.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp index 64b763ec..7276a895 100644 --- a/src/audio/sampman_oal.cpp +++ b/src/audio/sampman_oal.cpp @@ -779,7 +779,11 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment) for ( int32 i = 0; i < _TODOCONST(3); i++ ) { +#ifdef FIX_BUGS + slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx); +#else slot = nCurrentPedSlot - i - 1; +#endif if ( nComment == nPedSlotSfx[slot] ) return true; } |
