Mercurial > might-and-magic-trilogy
changeset 138:4e1e3fe8502f
17.11.12
author | Ritor1 |
---|---|
date | Sat, 17 Nov 2012 17:32:20 +0600 |
parents | 0afe11853c77 |
children | 9433939584e2 5eb242640b6f 1b7ca63e472e |
files | Party.cpp |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/Party.cpp Fri Nov 16 18:03:06 2012 +0600 +++ b/Party.cpp Sat Nov 17 17:32:20 2012 +0600 @@ -290,7 +290,7 @@ unsigned __int8 v9; // zf@37 char v10; // sf@37 unsigned __int8 v11; // of@37 - char *v12; // eax@38 + char *pAttributes; // eax@38 signed int v13; // ecx@38 int uMaxSP; // eax@42 unsigned int v15; // [sp-4h] [bp-44h]@14 @@ -478,21 +478,21 @@ } } uSkillIdx = v18 + 1; - v11 = __OFSUB__(v18 + 1, 36); + v11 = uSkillIdx > 36; v9 = v18 == 35; - v10 = v18++ - 35 < 0; + v10 = uSkillIdx - 35 < 0; } while ( (unsigned __int8)(v10 ^ v11) | v9 ); - v12 = (char *)&pCharacter->pInventoryItems[0].uAttributes; - v13 = 138; - do + pAttributes = (char *)&pCharacter->pInventoryItems[0].uAttributes; + //v13 = 138; + for (v13 = 138; v13 > 0; --v13) { - if ( *((int *)v12 - 5) ) - *(int *)v12 |= 1u; - v12 += 36; - --v13; + if ( *((int *)pAttributes - 5) ) + *(int *)pAttributes |= 1; + pAttributes += 36; + //--v13; } - while ( v13 ); + //while ( v13 ); } pCharacter->sHealth = pCharacter->GetMaxHealth(); pCharacter->sMana = pCharacter->GetMaxMana();