Add range check for bot skill in addbot command

Adding a bot with skill of 0 doesn't show icon on hud.
This commit is contained in:
Zack Middleton 2017-06-29 19:22:25 -05:00
parent cabc32362c
commit b984dd4a23

View file

@ -772,7 +772,7 @@ void Svcmd_AddBot_f( void ) {
skill = 4;
}
else {
skill = atof( string );
skill = Com_Clamp( 1, 5, atof( string ) );
}
// team