From 7589b5602dfa74e74aa88234cddd8cec0e2e3388 Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Wed, 10 Aug 2022 22:29:10 +0300 Subject: [PATCH] game: fix const CanHolster --- game/shared/tf2base/tf_weapon_minigun.cpp | 4 ++-- game/shared/tf2base/tf_weapon_minigun.h | 2 +- game/shared/tf2base/tf_weapon_sniperrifle.cpp | 2 +- game/shared/tf2base/tf_weapon_sniperrifle.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/game/shared/tf2base/tf_weapon_minigun.cpp b/game/shared/tf2base/tf_weapon_minigun.cpp index d08747d0..c6df6e31 100644 --- a/game/shared/tf2base/tf_weapon_minigun.cpp +++ b/game/shared/tf2base/tf_weapon_minigun.cpp @@ -331,7 +331,7 @@ void CTFMinigun::WindUp( void ) //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- -bool CTFMinigun::CanHolster( void ) const +bool CTFMinigun::CanHolster( void ) { if ( m_iWeaponState > AC_STATE_IDLE ) return false; @@ -837,4 +837,4 @@ void CTFMinigun::WeaponSoundUpdate() } -#endif \ No newline at end of file +#endif diff --git a/game/shared/tf2base/tf_weapon_minigun.h b/game/shared/tf2base/tf_weapon_minigun.h index fe23ed5b..7811f89c 100644 --- a/game/shared/tf2base/tf_weapon_minigun.h +++ b/game/shared/tf2base/tf_weapon_minigun.h @@ -56,7 +56,7 @@ public: void SharedAttack(); virtual void WeaponIdle(); virtual bool SendWeaponAnim( int iActivity ); - virtual bool CanHolster( void ) const; + virtual bool CanHolster( void ); virtual bool Holster( CBaseCombatWeapon *pSwitchingTo ); virtual bool Lower( void ); virtual void HandleFireOnEmpty( void ); diff --git a/game/shared/tf2base/tf_weapon_sniperrifle.cpp b/game/shared/tf2base/tf_weapon_sniperrifle.cpp index 05e33b77..3c6c2960 100644 --- a/game/shared/tf2base/tf_weapon_sniperrifle.cpp +++ b/game/shared/tf2base/tf_weapon_sniperrifle.cpp @@ -142,7 +142,7 @@ bool CTFSniperRifle::Reload( void ) //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- -bool CTFSniperRifle::CanHolster( void ) const +bool CTFSniperRifle::CanHolster( void ) { CTFPlayer *pPlayer = GetTFPlayerOwner(); if ( pPlayer ) diff --git a/game/shared/tf2base/tf_weapon_sniperrifle.h b/game/shared/tf2base/tf_weapon_sniperrifle.h index c1786b3d..fd9cac91 100644 --- a/game/shared/tf2base/tf_weapon_sniperrifle.h +++ b/game/shared/tf2base/tf_weapon_sniperrifle.h @@ -89,7 +89,7 @@ public: void ResetTimers( void ); virtual bool Reload( void ); - virtual bool CanHolster( void ) const; + virtual bool CanHolster( void ); virtual bool Holster( CBaseCombatWeapon *pSwitchingTo ); void HandleZooms( void );