| 16700 | } |
| 16701 | |
| 16702 | void cFodder::Mission_Intro_Play(const bool pShowHelicopter, eTileTypes pTileset) { |
| 16703 | |
| 16704 | // Single maps |
| 16705 | if (mCustom_Mode == eCustomMode_Map) |
| 16706 | return; |
| 16707 | |
| 16708 | // If we don't have the briefing graphics, there is no point in switching here, |
| 16709 | // As the correct background for the map intro won't exist |
| 16710 | if (!mVersionCurrent->hasGfx(eGFX_BRIEFING)) |
| 16711 | return; |
| 16712 | |
| 16713 | mSurface->clearBuffer(); |
| 16714 | mWindow->SetScreenSize(mVersionCurrent->GetScreenSize()); |
| 16715 | |
| 16716 | if (pTileset >= eTileTypes_Hid) |
| 16717 | pTileset = eTileTypes_Jungle; |
| 16718 | |
| 16719 | mGraphics->Mission_Intro_Load_Resources(pTileset); |
| 16720 | mGraphics->SetActiveSpriteSheet(eGFX_BRIEFING); |
| 16721 | |
| 16722 | mMouse_Exit_Loop = false; |
| 16723 | Music_Play(0x07); |
| 16724 | Mission_Intro_Helicopter_Start(); |
| 16725 | |
| 16726 | //Mission_Intro_Draw_Mission_Name(); |
| 16727 | mSurface->Save(); |
| 16728 | |
| 16729 | // Prior to mission 4, the UFO is not shown on the mission intro |
| 16730 | bool ShowHelicopter = true; |
| 16731 | if (mVersionCurrent->isCannonFodder2() && mGame_Data.mMission_Number < 4 && !pShowHelicopter) |
| 16732 | ShowHelicopter = false; |
| 16733 | |
| 16734 | mWindow->ToggleVSync(true); |
| 16735 | mVersionPlatformSwitchDisabled = true; |
| 16736 | mGraphics->Mission_Intro_Play(ShowHelicopter, pTileset, Briefing_Get_Mission_Title(), Briefing_Get_Phase_Name()); |
| 16737 | mVersionPlatformSwitchDisabled = false; |
| 16738 | mWindow->ToggleVSync(false); |
| 16739 | } |
| 16740 | |
| 16741 | void cFodder::Intro_Print_String(const sIntroString* pString) { |
| 16742 |
nothing calls this directly
no test coverage detected