another crash bug fix
some code style fixes
This commit is contained in:
parent
6b4a7f9ffd
commit
f3e583e057
3 changed files with 10 additions and 11 deletions
|
|
@ -1673,7 +1673,7 @@ void Bot::CheckReload (void)
|
|||
break;
|
||||
}
|
||||
|
||||
if (m_ammoInClip[weaponIndex] < (maxClip * 0.8) && m_ammo[g_weaponDefs[weaponIndex].ammo1] > 0)
|
||||
if (m_ammoInClip[weaponIndex] < (maxClip * 0.8) && g_weaponDefs[m_currentWeapon].ammo1 != -1 && g_weaponDefs[m_currentWeapon].ammo1 < 32 && m_ammo[g_weaponDefs[weaponIndex].ammo1] > 0)
|
||||
{
|
||||
if (m_currentWeapon != weaponIndex)
|
||||
SelectWeaponByName (g_weaponDefs[weaponIndex].className);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue