Mercurial > mm7
comparison Player.cpp @ 1458:934074e7fcc1
ModalWindow
__thiscall and __cdecl removed
Some random renames & refactors
author | Nomad |
---|---|
date | Wed, 21 Aug 2013 14:26:36 +0200 |
parents | bfe342ae0c1f |
children | 2ca62c9e7b3c |
comparison
equal
deleted
inserted
replaced
1457:9dc33590f93e | 1458:934074e7fcc1 |
---|---|
160 }; | 160 }; |
161 | 161 |
162 | 162 |
163 | 163 |
164 //----- (00490913) -------------------------------------------------------- | 164 //----- (00490913) -------------------------------------------------------- |
165 signed int __cdecl PlayerCreation_GetUnspentAttributePointCount() | 165 signed int PlayerCreation_GetUnspentAttributePointCount() |
166 { | 166 { |
167 signed int v0; // edi@1 | 167 signed int v0; // edi@1 |
168 int raceId; // ebx@2 | 168 int raceId; // ebx@2 |
169 signed int v4; // eax@17 | 169 signed int v4; // eax@17 |
170 int v5; // edx@18 | 170 int v5; // edx@18 |
5633 if ( *AttrToChange - pStep >= uMinValue ) | 5633 if ( *AttrToChange - pStep >= uMinValue ) |
5634 *AttrToChange -= pStep; | 5634 *AttrToChange -= pStep; |
5635 } | 5635 } |
5636 | 5636 |
5637 //----- (004905F5) -------------------------------------------------------- | 5637 //----- (004905F5) -------------------------------------------------------- |
5638 //signed int __thiscall PartyCreation_BtnPlusClick(Player *this, int eAttribute) | 5638 //signed int PartyCreation_BtnPlusClick(Player *this, int eAttribute) |
5639 void Player::IncreaseAttribute( int eAttribute ) | 5639 void Player::IncreaseAttribute( int eAttribute ) |
5640 { | 5640 { |
5641 int raceId; // eax@1 | 5641 int raceId; // eax@1 |
5642 int maxValue; // ebx@1 | 5642 int maxValue; // ebx@1 |
5643 signed int baseStep; // edi@1 | 5643 signed int baseStep; // edi@1 |
8782 } | 8782 } |
8783 } | 8783 } |
8784 return false; | 8784 return false; |
8785 } | 8785 } |
8786 //----- (0043EDB9) -------------------------------------------------------- | 8786 //----- (0043EDB9) -------------------------------------------------------- |
8787 bool __thiscall sub_43EDB9_get_some_race_sex_relation_2(unsigned int a1) | 8787 bool sub_43EDB9_get_some_race_sex_relation_2(unsigned int a1) |
8788 { | 8788 { |
8789 unsigned int pNum; // ebp@1 | 8789 unsigned int pNum; // ebp@1 |
8790 Player **pPlayer; // ebx@1 | 8790 Player **pPlayer; // ebx@1 |
8791 Player *pPlayer2; // esi@2 | 8791 Player *pPlayer2; // esi@2 |
8792 enum CHARACTER_RACE pRace; // edi@2 | 8792 enum CHARACTER_RACE pRace; // edi@2 |
9369 v43 = &pParty->pPlayers[*(&v72+rand()%v74)-1];//&stru_AA1058[3].pSounds[6972 * *(&v72 + rand() % v74) + 40552]; | 9369 v43 = &pParty->pPlayers[*(&v72+rand()%v74)-1];//&stru_AA1058[3].pSounds[6972 * *(&v72 + rand() % v74) + 40552]; |
9370 goto LABEL_168; | 9370 goto LABEL_168; |
9371 } | 9371 } |
9372 } | 9372 } |
9373 //----- (00421EA6) -------------------------------------------------------- | 9373 //----- (00421EA6) -------------------------------------------------------- |
9374 void __cdecl OnInventoryLeftClick() | 9374 void OnInventoryLeftClick() |
9375 { | 9375 { |
9376 Player *v0; // ebx@1 | 9376 Player *v0; // ebx@1 |
9377 signed int v1; // eax@2 | 9377 signed int v1; // eax@2 |
9378 signed int v2; // ecx@2 | 9378 signed int v2; // ecx@2 |
9379 int v3; // eax@2 | 9379 int v3; // eax@2 |