Mercurial > mm7
diff mm7_1.cpp @ 97:8c0fcfa72fce
Слияние
author | Ritor1 |
---|---|
date | Thu, 07 Feb 2013 13:54:32 +0600 |
parents | 98cd93e14777 |
children | 2baff1256844 |
line wrap: on
line diff
--- a/mm7_1.cpp Thu Feb 07 13:54:23 2013 +0600 +++ b/mm7_1.cpp Thu Feb 07 13:54:32 2013 +0600 @@ -3695,7 +3695,7 @@ //----- (0041F6C1) -------------------------------------------------------- void __cdecl RestUI_Initialize() { - char *v0; // eax@10 + Player *v0; // eax@10 if ( !dword_506F14 ) pAudioPlayer->StopChannels(-1, -1); @@ -3718,16 +3718,16 @@ pParty->vPosition.z); if ( sub_476387() ) { - v0 = (char *)&pParty->pPlayers[0].uClass; - while ( *v0 != 31 ) - { - v0 += 6972; - if ( (signed int)v0 >= (signed int)((char *)&pParty->pPickedItem.uExpireTime + 5) ) - goto LABEL_15; - } - ++uRestUI_FoodRequiredToRest; - } -LABEL_15: + v0 = pParty->pPlayers;//[0].uClass; + while ( v0 <= &pParty->pPlayers[3] ) + { + ++v0; + if ( v0 > &pParty->pPlayers[3] ) + break; + } + if(v0->uClass == 31) + ++uRestUI_FoodRequiredToRest; + } if ( CheckHiredNPCSpeciality(0x1Du) ) --uRestUI_FoodRequiredToRest; if ( CheckHiredNPCSpeciality(0x1Eu) )