Mercurial > mm7
comparison Party.cpp @ 566:fcbb3c281217
QuickRef reputation string fix
author | Nomad |
---|---|
date | Tue, 05 Mar 2013 03:42:21 +0200 |
parents | d5da524ec901 |
children | 96f48cfdd657 f8a4a2e0b4c9 |
comparison
equal
deleted
inserted
replaced
565:e429ad557cda | 566:fcbb3c281217 |
---|---|
254 } | 254 } |
255 | 255 |
256 //----- (0049135E) -------------------------------------------------------- | 256 //----- (0049135E) -------------------------------------------------------- |
257 unsigned int Party::GetPartyFame() | 257 unsigned int Party::GetPartyFame() |
258 { | 258 { |
259 signed int v1; // eax@1 | 259 unsigned __int64 total_exp = 0; |
260 Player *v2; // ecx@1 | 260 for (uint i = 0; i < 4; ++i) |
261 signed int v3; // edx@1 | 261 total_exp += pPlayers[i].uExperience; |
262 | 262 return total_exp / 1000; |
263 v1 = 0; | |
264 v2 = this->pPlayers;//[0].uExperience; | |
265 v3 = 4; // (E exp) / 1000 | |
266 do | |
267 { | |
268 v1 += (int)v2->uExperience; // needs review | |
269 ++v2; | |
270 --v3; | |
271 } | |
272 while ( v3 ); | |
273 return v1 / 1000; | |
274 } | 263 } |
275 | 264 |
276 //----- (0049137D) -------------------------------------------------------- | 265 //----- (0049137D) -------------------------------------------------------- |
277 void Party::CreateDefaultParty(char bGiveItems) | 266 void Party::CreateDefaultParty(char bGiveItems) |
278 { | 267 { |