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:
1 parent
cabc32362c
commit
b984dd4a23
1 file changed
+1
-1
+1
-1
@@ -772,7 +772,7 @@ void Svcmd_AddBot_f( void ) {
|
||||
skill = 4;
|
||||
}
|
||||
else {
|
||||
skill = atof( string );
|
||||
skill = Com_Clamp( 1, 5, atof( string ) );
|
||||
}
|
||||
|
||||
// team
|
||||
|
||||
Reference in new issue
Block a user