Fix bot skill format so it doesn't always have a space at the beginning of it.
This commit is contained in:
parent
a57a5cfd9b
commit
45bb0f7b53
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ static void G_AddBot( const char *name, float skill, const char *team, int delay
|
||||||
Info_SetValueForKey( userinfo, "name", botname );
|
Info_SetValueForKey( userinfo, "name", botname );
|
||||||
Info_SetValueForKey( userinfo, "rate", "25000" );
|
Info_SetValueForKey( userinfo, "rate", "25000" );
|
||||||
Info_SetValueForKey( userinfo, "snaps", "20" );
|
Info_SetValueForKey( userinfo, "snaps", "20" );
|
||||||
Info_SetValueForKey( userinfo, "skill", va("%5.2f", skill) );
|
Info_SetValueForKey( userinfo, "skill", va("%.2f", skill) );
|
||||||
|
|
||||||
if ( skill >= 1 && skill < 2 ) {
|
if ( skill >= 1 && skill < 2 ) {
|
||||||
Info_SetValueForKey( userinfo, "handicap", "50" );
|
Info_SetValueForKey( userinfo, "handicap", "50" );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue