From 259b2c7c746d044956c1c1897e7c14d2baa99dd8 Mon Sep 17 00:00:00 2001 From: rabscootle Date: Thu, 27 Feb 2025 18:22:53 -0600 Subject: [PATCH] Match Status doors will now refresh skin/submodel at match end to prevent displaying wrong appearance --- src/game/client/tf/tf_hud_match_status.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/game/client/tf/tf_hud_match_status.cpp b/src/game/client/tf/tf_hud_match_status.cpp index b2a9f804c..27912b996 100644 --- a/src/game/client/tf/tf_hud_match_status.cpp +++ b/src/game/client/tf/tf_hud_match_status.cpp @@ -574,6 +574,17 @@ void CTFHudMatchStatus::FireGameEvent( IGameEvent * event ) } const IMatchGroupDescription* pMatchDesc = GetMatchGroupDescription( TFGameRules()->GetCurrentMatchGroup() ); + + //FIX: Refresh versus doors so Casual late-joiners do not see the wrong skin + int nSkin = 0; + int nSubModel = 0; + if (pMatchDesc->BGetRoundDoorParameters(nSkin, nSubModel)) + { + m_pMatchStartModelPanel->SetBodyGroup( "logos", nSubModel ); + m_pMatchStartModelPanel->UpdateModel(); + m_pMatchStartModelPanel->SetSkin( nSkin ); + } + bool bForceDoors = false; if ( bForceDoors || ( pMatchDesc && pMatchDesc->BUsesPostRoundDoors() ) ) {