mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2026-10-10 20:41:26 +00:00
check for none
This commit is contained in:
1 parent
81856f9d28
commit
f9289077ef
1 file changed
+5
-1
@@ -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