From 5cdfa5c5a02ea6f2ef9c64255dd3f1fe4b079873 Mon Sep 17 00:00:00 2001 From: nosoop Date: Thu, 20 Feb 2025 16:13:15 -0800 Subject: [PATCH] Prevent disguise kit team selection from resetting at high latency Fixes ValveSoftware/Source-1-Games#2755. --- src/game/shared/tf/tf_weapon_pda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/tf/tf_weapon_pda.cpp b/src/game/shared/tf/tf_weapon_pda.cpp index 257ebc0fb..010aeb9a1 100644 --- a/src/game/shared/tf/tf_weapon_pda.cpp +++ b/src/game/shared/tf/tf_weapon_pda.cpp @@ -317,7 +317,7 @@ bool CTFWeaponPDA_Spy::Deploy( void ) { bool bDeploy = BaseClass::Deploy(); - if ( bDeploy ) + if ( bDeploy && prediction->IsFirstTimePredicted() ) { // let the spy pda menu know to reset IGameEvent *event = gameeventmanager->CreateEvent( "spy_pda_reset" );