| 629 | } |
| 630 | |
| 631 | void cFodder::Phase_Loop_Interrupt() { |
| 632 | |
| 633 | // Input disabled or Mission not paused? |
| 634 | if (!mInput_Enabled || !mPhase_Paused) { |
| 635 | |
| 636 | ++mPhase_InterruptTicks; |
| 637 | ++mInterruptTick; |
| 638 | |
| 639 | Mouse_Inputs_Get(); |
| 640 | |
| 641 | if (mInput_Enabled) { |
| 642 | Camera_Handle(); |
| 643 | |
| 644 | if (!mPhase_Finished) |
| 645 | Mouse_Inputs_Check(); |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | if (mSound) { |
| 650 | Music_Increase_Channel_Volume(); |
| 651 | } |
| 652 | // sub_A3DBC |
| 653 | // sub_8A27A |
| 654 | // |
| 655 | //loc_108AE |
| 656 | if (mSquad_SwitchWeapon) { |
| 657 | --mSquad_SwitchWeapon; |
| 658 | Squad_Switch_Weapon(); |
| 659 | } |
| 660 | |
| 661 | if (mMouseCursor_Enabled) |
| 662 | Mouse_DrawCursor(); |
| 663 | |
| 664 | if (!mInput_Enabled) |
| 665 | return; |
| 666 | |
| 667 | if (!mPhase_In_Progress) |
| 668 | return; |
| 669 | |
| 670 | if (mPhase_Completed_Timer || mMapTile_Music_Play || mPhase_Complete || mPhase_TryAgain || mPhase_Aborted) { |
| 671 | mPhase_Finished = true; |
| 672 | return; |
| 673 | } |
| 674 | |
| 675 | if (!(mInterruptTick & 3)) |
| 676 | Music_Fade_SwitchTrack(); |
| 677 | |
| 678 | //sub_A3B14 |
| 679 | |
| 680 | if (!mSoundEffectToPlay) |
| 681 | return; |
| 682 | |
| 683 | Sound_Play(mSquad_Leader, mSoundEffectToPlay, 0); |
| 684 | mSoundEffectToPlay = 0; |
| 685 | |
| 686 | } |
| 687 | |
| 688 | void cFodder::Camera_Handle() { |
nothing calls this directly
no outgoing calls
no test coverage detected