Small fixes for issues of various sizes

This commit is contained in:
Blixibon
2022-04-26 08:04:54 -05:00
parent b04fb3c43f
commit daa4779978
9 changed files with 9 additions and 8 deletions

View File

@@ -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')

View File

@@ -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