Skip to content

Commit

Permalink
Fix player weapons still receiving input when starting to use a func_…
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Apr 1, 2023
1 parent 49300de commit 4fe7e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Fixed Gauss gun sometimes settting player uranium ammo to -1 (halflife issue [#3343](https://github.com/ValveSoftware/halflife/issues/3343))
* Fixed pistol not playing empty sound when using secondary attack
* Fixed user interface coordinates and sizes being incorrectly adjusted for resolution (halflife issue [#3344](https://github.com/ValveSoftware/halflife/issues/3344))
* Fixed player weapons still receiving input when starting to use a func_tank (halflife issue [#3345](https://github.com/ValveSoftware/halflife/issues/3345)) (Thanks Oxofemple.)

## Changes in V1.0.0 Beta 014

Expand Down
4 changes: 4 additions & 0 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3839,6 +3839,10 @@ void CBasePlayer::ItemPostFrame()

ImpulseCommands();

// check again if the player is using a tank if they started using it in PlayerUse
if (m_pTank != NULL)
return;

if (!m_pActiveItem)
return;

Expand Down

0 comments on commit 4fe7e6e

Please sign in to comment.