MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Phase_Loop_Interrupt

Method Phase_Loop_Interrupt

Source/Fodder.cpp:631–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void 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
688void cFodder::Camera_Handle() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected