some fixes

This commit is contained in:
Nikolay Korolev
2020-05-14 14:01:24 +03:00
parent 9b162554ca
commit 9d4d83db0d
4 changed files with 16 additions and 0 deletions

View File

@ -1449,7 +1449,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;
}

View File

@ -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;
}