From 424122c3667a3294ba15824999327653ff4fdf31 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 4 Dec 2014 16:40:40 -0600 Subject: [PATCH] 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. --- code/game/ai_main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/ai_main.h b/code/game/ai_main.h index ff258a05..40f5bb47 100644 --- a/code/game/ai_main.h +++ b/code/game/ai_main.h @@ -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