mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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:
parent
cabc32362c
commit
b984dd4a23
1 changed files with 1 additions and 1 deletions
|
@ -772,7 +772,7 @@ void Svcmd_AddBot_f( void ) {
|
|||
skill = 4;
|
||||
}
|
||||
else {
|
||||
skill = atof( string );
|
||||
skill = Com_Clamp( 1, 5, atof( string ) );
|
||||
}
|
||||
|
||||
// team
|
||||
|
|
Loading…
Reference in a new issue