mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +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;
|
skill = 4;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skill = atof( string );
|
skill = Com_Clamp( 1, 5, atof( string ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// team
|
// team
|
||||||
|
|
Loading…
Reference in a new issue