Mercurial > mm7
diff Party.cpp @ 566:fcbb3c281217
QuickRef reputation string fix
author | Nomad |
---|---|
date | Tue, 05 Mar 2013 03:42:21 +0200 |
parents | d5da524ec901 |
children | 96f48cfdd657 f8a4a2e0b4c9 |
line wrap: on
line diff
--- a/Party.cpp Tue Mar 05 01:45:43 2013 +0200 +++ b/Party.cpp Tue Mar 05 03:42:21 2013 +0200 @@ -256,21 +256,10 @@ //----- (0049135E) -------------------------------------------------------- unsigned int Party::GetPartyFame() { - signed int v1; // eax@1 - Player *v2; // ecx@1 - signed int v3; // edx@1 - - v1 = 0; - v2 = this->pPlayers;//[0].uExperience; - v3 = 4; // (E exp) / 1000 - do - { - v1 += (int)v2->uExperience; // needs review - ++v2; - --v3; - } - while ( v3 ); - return v1 / 1000; + unsigned __int64 total_exp = 0; + for (uint i = 0; i < 4; ++i) + total_exp += pPlayers[i].uExperience; + return total_exp / 1000; } //----- (0049137D) --------------------------------------------------------