File tree Expand file tree Collapse file tree
src/game/client/swarm/vgui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -649,16 +649,12 @@ void MissionCompletePanel::OnCommand( const char *command )
649649 {
650650 if ( m_bSuccess && m_bLastMission && !m_bCreditsSeen )
651651 {
652- C_ASW_Player *pPlayer = C_ASW_Player::GetLocalASWPlayer ();
653- if ( pPlayer )
654- {
655- m_pStatsPanel->m_pDebrief ->m_pPara [0 ]->SetVisible ( false );
656- m_pStatsPanel->m_pDebrief ->m_pPara [1 ]->SetVisible ( false );
657- m_pStatsPanel->m_pDebrief ->m_pPara [2 ]->SetVisible ( false );
658- pPlayer->LaunchCredits ( m_pStatsPanel->m_pDebrief ->m_pBackground ->m_pBackgroundInner );
659- m_bCreditsSeen = true ;
660- UpdateVisibleButtons ();
661- }
652+ m_pStatsPanel->m_pDebrief ->m_pPara [0 ]->SetVisible ( false );
653+ m_pStatsPanel->m_pDebrief ->m_pPara [1 ]->SetVisible ( false );
654+ m_pStatsPanel->m_pDebrief ->m_pPara [2 ]->SetVisible ( false );
655+ pPlayer->LaunchCredits ( m_pStatsPanel->m_pDebrief ->m_pBackground ->m_pBackgroundInner );
656+ m_bCreditsSeen = true ;
657+ UpdateVisibleButtons ();
662658 }
663659 else if ( m_bSuccess && m_bLastMission && ( !ASWGameRules () || ASWGameRules ()->m_szCycleNextMap .Get ()[0 ] == ' \0 ' ) )
664660 {
You can’t perform that action at this time.
0 commit comments