changeset 139:9433939584e2

2012.11.20
author Nomad
date Tue, 20 Nov 2012 23:38:54 +0200
parents 4e1e3fe8502f
children b4de64c44c76 96ab6bba8408
files Party.cpp
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Party.cpp	Sat Nov 17 17:32:20 2012 +0600
+++ b/Party.cpp	Tue Nov 20 23:38:54 2012 +0200
@@ -287,9 +287,9 @@
   signed int uSpellBookPageCount; // edx@5
   int v7; // eax@5
   int uSkillIdx; // eax@11
-  unsigned __int8 v9; // zf@37
-  char v10; // sf@37
-  unsigned __int8 v11; // of@37
+  //unsigned __int8 v9; // zf@37
+  //char v10; // sf@37
+  //unsigned __int8 v11; // of@37
   char *pAttributes; // eax@38
   signed int v13; // ecx@38
   int uMaxSP; // eax@42
@@ -478,11 +478,11 @@
           }
         }
         uSkillIdx = v18 + 1;
-        v11 = uSkillIdx > 36;
-        v9 = v18 == 35;
-        v10 = uSkillIdx - 35 < 0;
+        //v11 = uSkillIdx > 36;
+        //v9 = v18 == 35;
+        //v10 = uSkillIdx - 35 < 0;
       }
-      while ( (unsigned __int8)(v10 ^ v11) | v9 );
+      while (uSkillIdx < 36);
       pAttributes = (char *)&pCharacter->pInventoryItems[0].uAttributes;
       //v13 = 138;
       for (v13 = 138; v13 > 0; --v13)
@@ -497,8 +497,8 @@
     pCharacter->sHealth = pCharacter->GetMaxHealth();
     pCharacter->sMana = pCharacter->GetMaxMana();
     pCharacter++;
-    v9 = uNumPlayers-- == 1;
-    if ( v9 )
+    uNumPlayers--;
+    if (!uNumPlayers)
       break;
     pResMagicBase = (int)pCharacter;
     v3 = 10;