Fix bot's teamleader name field being too short

Players using names with 32 to 35 characters could not be recognized as
the team leader.

Reported by Razor.
This commit is contained in:
Zack Middleton 2014-12-04 16:40:40 -06:00
parent b21a59af8c
commit 424122c366

View file

@ -248,7 +248,7 @@ typedef struct bot_state_s
float leadmessage_time; //last time a messaged was sent to the team mate
float leadbackup_time; //time backing up towards team mate
//
char teamleader[32]; //netname of the team leader
char teamleader[MAX_NETNAME]; //netname of the team leader
float askteamleader_time; //time asked for team leader
float becometeamleader_time; //time the bot will become the team leader
float teamgiveorders_time; //time to give team orders