Skip to content

Commit c89019f

Browse files
committed
special fix: remive redundand getplayer
1 parent 7aecb93 commit c89019f

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/game/client/swarm/vgui/missioncompletepanel.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)