cleanup
- fix possible crash in conc (but it's still an ugly hack) - fix noob usage of strcmp - flag some memory leaks (it would be nice, if the author(s) would clean up the mess himself) - fix crash in substr - whitespace cleanup there are plenty more memory leaks in command.cpp - for example, every goto in cubescript does not clean up anything
This commit is contained in:
@@ -46,7 +46,7 @@ bool CACBot::ChoosePreferredWeapon()
|
||||
{
|
||||
sWeaponScore = 0; // Minimal score for a weapon
|
||||
sWeaponScore = i > 1 ? 5 : 0; // Primary are usually better
|
||||
|
||||
|
||||
if (!m_pMyEnt->mag[i] && WeaponInfoTable[i].eWeaponType != TYPE_MELEE)
|
||||
{
|
||||
continue;
|
||||
@@ -127,7 +127,7 @@ bool CACBot::ChoosePreferredWeapon()
|
||||
if (WeaponInfoTable[m_pMyEnt->gunselect].eWeaponType == TYPE_ROCKET)
|
||||
{
|
||||
m_bShootAtFeet = true;
|
||||
|
||||
|
||||
}
|
||||
if(lastmillis > m_iChangeWeaponDelay)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user