8000 mint-arena: Fix bot console message queue reaching limit on map change · Turtle-Arena/turtle-arena-code@c428f15 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c428f15

Browse files
committed
mint-arena: Fix bot console message queue reaching limit on map change
On map change there are two console messages for each player. "X entered the game". "X joined the red team". However a bot may ask who the team leader is which will require the bot console message queue to be at least 129 console messages (currently 128). Increase bot console message queue to 196.
1 parent ca5bd9f commit c428f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/game/ai_chat_sys.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ typedef struct bot_stringlist_s
193193
struct bot_stringlist_s *next;
194194
} bot_stringlist_t;
195195

196-
//may use up to MAX_CLIENTS * 2 console messages on map change
197-
#define MAX_CHATSTATE_MESSAGES 128
196+
//may use up to MAX_CLIENTS * 2 console messages plus a few chat messages on map change
197+
#define MAX_CHATSTATE_MESSAGES ( MAX_CLIENTS * 3 )
198198

199199
//chat state of a bot
200200
typedef struct bot_chatstate_s

0 commit comments

Comments
 (0)
0