Removed useless check
This commit is contained in:
parent
399e6e674a
commit
f46d09bab1
1 changed files with 2 additions and 5 deletions
|
@ -343,14 +343,11 @@ bool CKnife::SwingOrStab( bool bStab )
|
||||||
Vector vecSrc = pPlayer->Weapon_ShootPosition();
|
Vector vecSrc = pPlayer->Weapon_ShootPosition();
|
||||||
CUserCmd* playerCmd = NULL;
|
CUserCmd* playerCmd = NULL;
|
||||||
|
|
||||||
if (pPlayer)
|
|
||||||
{
|
|
||||||
#ifdef CLIENT_DLL
|
#ifdef CLIENT_DLL
|
||||||
playerCmd = pPlayer->m_pCurrentCommand;
|
playerCmd = pPlayer->m_pCurrentCommand;
|
||||||
#else
|
#else
|
||||||
playerCmd = pPlayer->GetCurrentCommand();
|
playerCmd = pPlayer->GetCurrentCommand();
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
if (playerCmd)
|
if (playerCmd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue