remove of pod-bot-mm msec method

fixed weird aiming on low fps machines
fixed potential crash bug in weaponn selection code
This commit is contained in:
jeefo 2015-08-03 00:05:27 +03:00
commit ac3a5c7c3f
6 changed files with 14 additions and 31 deletions

View file

@ -1421,7 +1421,7 @@ void Bot::SelectBestWeapon (void)
ammoLeft = true;
// is no ammo required for this weapon OR enough ammo available to fire
if (g_weaponDefs[id].ammo1 < 0 || m_ammo[g_weaponDefs[id].ammo1] >= selectTab[selectIndex].minPrimaryAmmo)
if (g_weaponDefs[id].ammo1 < 0 || (g_weaponDefs[id].ammo1 < 32 && m_ammo[g_weaponDefs[id].ammo1] >= selectTab[selectIndex].minPrimaryAmmo))
ammoLeft = true;
if (ammoLeft)