mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-07-02 01:01:55 +00:00
check for none
This commit is contained in:
@ -422,8 +422,12 @@ onWeaponChange()
|
||||
{
|
||||
first = false;
|
||||
newWeapon = self getcurrentweapon();
|
||||
|
||||
// hack fix for botstop overridding weapon
|
||||
self switchtoweapon( newWeapon );
|
||||
if ( newWeapon != "none" )
|
||||
{
|
||||
self switchtoweapon( newWeapon );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user