Added hotfix for recently added fix; Added check for if the versus doors model hasn't been initialized yet

This commit is contained in:
rabscootle 2025-05-01 18:46:38 -05:00 committed by EricS-Valve
parent 18ea5ed7cc
commit 61ca3f7254

View File

@ -580,6 +580,12 @@ void CTFHudMatchStatus::FireGameEvent( IGameEvent * event )
int nSubModel = 0;
if (pMatchDesc->BGetRoundDoorParameters(nSkin, nSubModel))
{
// Is VS doors model not initialized yet?
if (m_pMatchStartModelPanel->m_hModel == NULL)
{
m_pMatchStartModelPanel->UpdateModel();
}
m_pMatchStartModelPanel->SetBodyGroup( "logos", nSubModel );
m_pMatchStartModelPanel->UpdateModel();
m_pMatchStartModelPanel->SetSkin( nSkin );