mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Small fixes for issues of various sizes
This commit is contained in:
@@ -368,7 +368,7 @@ void CBaseViewModel::SetWeaponModel( const char *modelname, CBaseCombatWeapon *w
|
||||
|
||||
#ifdef MAPBASE
|
||||
// If our owning weapon doesn't support hands, disable the hands viewmodel(s)
|
||||
bool bSupportsHands = weapon->UsesHands();
|
||||
bool bSupportsHands = weapon != NULL ? weapon->UsesHands() : false;
|
||||
for (CBaseEntity *pChild = FirstMoveChild(); pChild != NULL; pChild = pChild->NextMovePeer())
|
||||
{
|
||||
if (pChild->GetClassname()[0] == 'h')
|
||||
|
||||
@@ -344,12 +344,12 @@ inline void CTakeDamageInfo::SetDamageCustom( int iDamageCustom )
|
||||
|
||||
inline int CTakeDamageInfo::GetDamageStats() const
|
||||
{
|
||||
return m_iDamageCustom;
|
||||
return m_iDamageStats;
|
||||
}
|
||||
|
||||
inline void CTakeDamageInfo::SetDamageStats( int iDamageCustom )
|
||||
{
|
||||
m_iDamageCustom = iDamageCustom;
|
||||
m_iDamageStats = iDamageCustom;
|
||||
}
|
||||
|
||||
inline int CTakeDamageInfo::GetAmmoType() const
|
||||
|
||||
Reference in New Issue
Block a user