Mercurial > mm7
comparison mm7_4.cpp @ 1754:421c29d4ab3e
UITransition.cpp cleaning(continue)
author | Ritor1 |
---|---|
date | Mon, 30 Sep 2013 17:29:27 +0600 |
parents | cecb080929c4 |
children | 4dee76d79c78 04b92ce868e3 |
comparison
equal
deleted
inserted
replaced
1753:999bf8c99514 | 1754:421c29d4ab3e |
---|---|
2713 } | 2713 } |
2714 | 2714 |
2715 | 2715 |
2716 | 2716 |
2717 //----- (004B1447) -------------------------------------------------------- | 2717 //----- (004B1447) -------------------------------------------------------- |
2718 Player *__fastcall sub_4B1447_party_fine(int a1, int a2, int a3) | 2718 void sub_4B1447_party_fine(int a1, int a2, int a3) |
2719 { | 2719 { |
2720 signed int v3; // esi@1 | 2720 signed int v3; // esi@1 |
2721 char v4; // sf@8 | 2721 char v4; // sf@8 |
2722 int v5; // eax@8 | 2722 int v5; // eax@8 |
2723 unsigned __int64 v6; // qax@12 | 2723 unsigned __int64 v6; // qax@12 |
2724 DDM_DLV_Header *v7; // eax@14 | 2724 DDM_DLV_Header *v7; // eax@14 |
2725 Player **v8; // edi@18 | |
2726 Player *result; // eax@19 | |
2727 //char *v10; // esi@20 | |
2728 | 2725 |
2729 v3 = 0; | 2726 v3 = 0; |
2730 if ( a2 ) | 2727 if ( a2 ) |
2731 { | 2728 { |
2732 if ( a2 != 1 ) | 2729 if ( a2 == 1 ) |
2733 { | 2730 v3 = 2; |
2734 if ( a2 == 2 ) | 2731 if ( a2 == 2 ) |
2735 v3 = 2; | 2732 v3 = 2; |
2736 goto LABEL_13; | 2733 goto LABEL_13; |
2737 } | |
2738 v3 = 2; | |
2739 } | 2734 } |
2740 else | 2735 else |
2741 { | 2736 { |
2742 v3 = 1; | 2737 v3 = 1; |
2743 } | 2738 } |
2766 v7 = &pIndoor->dlv; | 2761 v7 = &pIndoor->dlv; |
2767 v7->uReputation += v3; | 2762 v7->uReputation += v3; |
2768 if ( v7->uReputation > 10000 ) | 2763 if ( v7->uReputation > 10000 ) |
2769 v7->uReputation = 10000; | 2764 v7->uReputation = 10000; |
2770 } | 2765 } |
2771 v8 = &pPlayers[1]; | 2766 for ( uint i = 1; i <= 4; ++i ) |
2772 do | 2767 { |
2773 { | |
2774 result = *v8; | |
2775 if ( pParty->uFine ) | 2768 if ( pParty->uFine ) |
2776 { | 2769 { |
2777 //v10 = result->_guilds_member_bits; | 2770 if ( !_449B57_test_bit(pPlayers[i]->_achieved_awards_bits, 1) ) |
2778 result = (Player *)_449B57_test_bit((unsigned __int8 *)result->_achieved_awards_bits, 1); | 2771 _449B7E_toggle_bit(pPlayers[i]->_achieved_awards_bits, 1, 1); |
2779 if ( !(short)result ) | 2772 } |
2780 __debugbreak(); | 2773 } |
2781 //result = (Player *)_449B7E_toggle_bit((unsigned char *)v10, 1, 1u); | |
2782 } | |
2783 ++v8; | |
2784 } | |
2785 while ( (signed int)v8 <= (signed int)&pPlayers[4] ); | |
2786 return result; | |
2787 } | 2774 } |
2788 | 2775 |
2789 //----- (004B1523) -------------------------------------------------------- | 2776 //----- (004B1523) -------------------------------------------------------- |
2790 void sub_4B1523(int *_this) | 2777 void sub_4B1523(int *_this) |
2791 { | 2778 { |