1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 12:20:00 +00:00

it works differently

This commit is contained in:
Nikolay Korolev 2020-05-14 14:03:56 +03:00
parent 9d4d83db0d
commit 8e0b132f43
2 changed files with 6 additions and 6 deletions

View file

@ -1449,10 +1449,10 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
for ( int32 i = 0; i < _TODOCONST(3); i++ ) for ( int32 i = 0; i < _TODOCONST(3); i++ )
{ {
#ifdef FIX_BUGS
slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx);
#else
slot = nCurrentPedSlot - i - 1; slot = nCurrentPedSlot - i - 1;
#ifdef FIX_BUGS
if (slot < 0)
slot += ARRAY_SIZE(nPedSlotSfx);
#endif #endif
if ( nComment == nPedSlotSfx[slot] ) if ( nComment == nPedSlotSfx[slot] )
return true; return true;

View file

@ -779,10 +779,10 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
for ( int32 i = 0; i < _TODOCONST(3); i++ ) for ( int32 i = 0; i < _TODOCONST(3); i++ )
{ {
#ifdef FIX_BUGS
slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx);
#else
slot = nCurrentPedSlot - i - 1; slot = nCurrentPedSlot - i - 1;
#ifdef FIX_BUGS
if (slot < 0)
slot += ARRAY_SIZE(nPedSlotSfx);
#endif #endif
if ( nComment == nPedSlotSfx[slot] ) if ( nComment == nPedSlotSfx[slot] )
return true; return true;