Skip to content

Commit

Permalink
Don't drain AUX in underwater
Browse files Browse the repository at this point in the history
* Just a quick ifndef out the device that starts/ends the drain
* fixes NeotokyoRebuild#529
  • Loading branch information
nullsystem committed Aug 19, 2024
1 parent 500899f commit 752e90b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mp/src/game/server/hl2/hl2_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,7 @@ void CHL2_Player::CheckFlashlight( void )
//-----------------------------------------------------------------------------
void CHL2_Player::SetPlayerUnderwater( bool state )
{
#ifndef NEO
if ( state )
{
SuitPower_AddDevice( SuitDeviceBreather );
Expand All @@ -2265,6 +2266,7 @@ void CHL2_Player::SetPlayerUnderwater( bool state )
{
SuitPower_RemoveDevice( SuitDeviceBreather );
}
#endif

BaseClass::SetPlayerUnderwater( state );
}
Expand Down

0 comments on commit 752e90b

Please sign in to comment.