Mercurial > mm7
comparison Player.cpp @ 1771:6c1823e19c2e
Player::SetVariable removing LABEL_168
author | Grumpy7 |
---|---|
date | Tue, 01 Oct 2013 07:36:27 +0200 |
parents | eba6a0a8e184 |
children | c0b32e8a82c8 |
comparison
equal
deleted
inserted
replaced
1770:eba6a0a8e184 | 1771:6c1823e19c2e |
---|---|
5547 break; | 5547 break; |
5548 } | 5548 } |
5549 return; | 5549 return; |
5550 } | 5550 } |
5551 pParty->uNumDeaths = var_value; | 5551 pParty->uNumDeaths = var_value; |
5552 LABEL_168: | |
5553 if ( v30 != 1 ) | 5552 if ( v30 != 1 ) |
5554 { | 5553 { |
5555 if ( v31 != 1 ) | 5554 if ( v31 != 1 ) |
5556 return; | 5555 return; |
5557 v5 = 0; | 5556 v5 = 0; |
5582 bFlashAutonotesBook = 1; | 5581 bFlashAutonotesBook = 1; |
5583 _506568_autonote_type = v21; | 5582 _506568_autonote_type = v21; |
5584 } | 5583 } |
5585 _449B7E_toggle_bit(pParty->_autonote_bits, var_value, 1u); | 5584 _449B7E_toggle_bit(pParty->_autonote_bits, var_value, 1u); |
5586 v31 = 1; | 5585 v31 = 1; |
5587 goto LABEL_168; | 5586 if ( v30 != 1 ) |
5587 { | |
5588 if ( v31 != 1 ) | |
5589 return; | |
5590 v5 = 0; | |
5591 v25 = 8 * currPlayerId + 400; | |
5592 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112); | |
5593 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); | |
5594 return; | |
5595 } | |
5596 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); | |
5597 if ( v31 != 1 ) | |
5598 return; | |
5599 v5 = 0; | |
5600 v25 = 8 * currPlayerId + 400; | |
5601 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112); | |
5602 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); | |
5603 return; | |
5588 } | 5604 } |
5589 if ( var_type <= VAR_ActualMight ) | 5605 if ( var_type <= VAR_ActualMight ) |
5590 { | 5606 { |
5591 if ( var_type != VAR_ActualMight ) | 5607 if ( var_type != VAR_ActualMight ) |
5592 { | 5608 { |
5648 { | 5664 { |
5649 v30 = 1; | 5665 v30 = 1; |
5650 v31 = 1; | 5666 v31 = 1; |
5651 pPlayers[currPlayerId + 1]->PlaySound(SPEECH_96, 0); | 5667 pPlayers[currPlayerId + 1]->PlaySound(SPEECH_96, 0); |
5652 } | 5668 } |
5653 _449B7E_toggle_bit((unsigned char *)v4->_achieved_awards_bits, var_value, 1u); | 5669 _449B7E_toggle_bit((unsigned char *)v4->_achieved_awards_bits, var_value, 1u); |
5654 goto LABEL_168; | 5670 if ( v30 != 1 ) |
5671 { | |
5672 if ( v31 != 1 ) | |
5673 return; | |
5674 v5 = 0; | |
5675 v25 = 8 * currPlayerId + 400; | |
5676 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112); | |
5677 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); | |
5678 return; | |
5679 } | |
5680 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); | |
5681 if ( v31 != 1 ) | |
5682 return; | |
5683 v5 = 0; | |
5684 v25 = 8 * currPlayerId + 400; | |
5685 LOBYTE(v25) = PID(OBJECT_Player,currPlayerId - 112); | |
5686 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); | |
5687 return; | |
5655 case VAR_Experience: | 5688 case VAR_Experience: |
5656 this->uExperience = var_value; | 5689 this->uExperience = var_value; |
5657 goto LABEL_124; | 5690 goto LABEL_124; |
5658 case VAR_QBits_QuestsDone: | 5691 case VAR_QBits_QuestsDone: |
5659 if ( !((unsigned __int8)(0x80u >> ((signed __int16)var_value - 1) % 8) & pParty->_quest_bits[((signed __int16)var_value - 1) >> 3]) | 5692 if ( !((unsigned __int8)(0x80u >> ((signed __int16)var_value - 1) % 8) & pParty->_quest_bits[((signed __int16)var_value - 1) >> 3]) |