This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch debian/master in repository ioquake3.
commit b984dd4a234da326ff50fdaa3f8d38516f4fd98b Author: Zack Middleton <[email protected]> Date: Thu Jun 29 19:22:25 2017 -0500 Add range check for bot skill in addbot command Adding a bot with skill of 0 doesn't show icon on hud. --- code/game/g_bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/g_bot.c b/code/game/g_bot.c index 66c9ae3..af4906a 100644 --- a/code/game/g_bot.c +++ b/code/game/g_bot.c @@ -772,7 +772,7 @@ void Svcmd_AddBot_f( void ) { skill = 4; } else { - skill = atof( string ); + skill = Com_Clamp( 1, 5, atof( string ) ); } // team -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

