From c8db7ccf44208891f4a0421382581eca474c3690 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sun, 1 Dec 2019 15:15:31 +0500 Subject: [PATCH] Remove useless python-specific changes. --- dlls/python.cpp | 4 ---- dlls/weapons.cpp | 6 ------ dlls/weapons.h | 5 ----- 3 files changed, 15 deletions(-) diff --git a/dlls/python.cpp b/dlls/python.cpp index a0a870d3..d8bfd35f 100644 --- a/dlls/python.cpp +++ b/dlls/python.cpp @@ -111,8 +111,6 @@ BOOL CPython::Deploy() pev->body = 0; } - m_flSoundDelay = 0; - return DefaultDeploy( "models/v_357.mdl", "models/p_357.mdl", PYTHON_DRAW, "python", UseDecrement(), pev->body ); } @@ -128,8 +126,6 @@ void CPython::Holster( int skiplocal /* = 0 */ ) m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 1.0f; m_flTimeWeaponIdle = UTIL_WeaponTimeBase() + UTIL_SharedRandomFloat( m_pPlayer->random_seed, 10.0f, 15.0f ); SendWeaponAnim( PYTHON_HOLSTER ); - - m_flSoundDelay = 0; } void CPython::SecondaryAttack( void ) diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index 484ae45c..eaa541bd 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -1629,9 +1629,3 @@ TYPEDESCRIPTION CSatchel::m_SaveData[] = IMPLEMENT_SAVERESTORE( CSatchel, CBasePlayerWeapon ) -TYPEDESCRIPTION CPython::m_SaveData[] = -{ - DEFINE_FIELD( CPython, m_flSoundDelay, FIELD_TIME ), -}; - -IMPLEMENT_SAVERESTORE( CPython, CBasePlayerWeapon ) diff --git a/dlls/weapons.h b/dlls/weapons.h index aa849300..312f5531 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -526,11 +526,6 @@ private: class CPython : public CBasePlayerWeapon { public: -#ifndef CLIENT_DLL - int Save( CSave &save ); - int Restore( CRestore &restore ); - static TYPEDESCRIPTION m_SaveData[]; -#endif void Spawn( void ); void Precache( void ); int iItemSlot( void ) { return 2; }