Skip to content

Commit eed14eb

Browse files
committed
Re-implement ValveSoftware#1524
1 parent 2d42e7e commit eed14eb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

game/quiver/info_changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Added the following Source SDK Pull Requests:
7878
- #1518: Fix the B.A.S.E. Jumper's parachute not using half of its animations
7979
- #1520: Add ForceDifficultyBasedAim CTFBot flag to allow MvM missions to let Spies aim better
8080
- #1522: Fix Thermal Thruster particles
81+
- #1524: Fix Eureka Effect menu reopening
8182

8283
Details:
8384
- Fixed a bug where the mini-crit damage effect doesn't show up when your shield breaks.

src/game/shared/tf/tf_weapon_wrench.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include "c_tf_player.h"
1616
#include "in_buttons.h"
1717
#include "tf_hud_menu_eureka_teleport.h"
18+
#ifdef BDSBASE
19+
#include "prediction.h"
20+
#endif
1821
// NVNT haptics system interface
1922
#include "haptics/ihaptics.h"
2023
// Server specific.
@@ -308,6 +311,13 @@ void CTFWrench::ItemPostFrame()
308311
return;
309312
}
310313

314+
#ifdef BDSBASE
315+
if (!pOwner->IsLocalPlayer() || !prediction->IsFirstTimePredicted())
316+
{
317+
return;
318+
}
319+
#endif
320+
311321
// Just pressed reload?
312322
if ( pOwner->m_nButtons & IN_RELOAD && !m_bReloadDown )
313323
{

0 commit comments

Comments
 (0)