From 88bdc3e433476646b5c1f07cfe27c6d6e8c1ff8c Mon Sep 17 00:00:00 2001 From: Hanicef Date: Thu, 15 Feb 2024 18:36:28 +0100 Subject: [PATCH] Fix MOTD not being sent to players on first join --- src/hu_stuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hu_stuff.c b/src/hu_stuff.c index bb2b837fc..4b199f6b3 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -620,7 +620,7 @@ static void Command_CSay_f(void) DoSayCommand(0, 1, HU_CSAY); } -static tic_t spam_tokens[MAXPLAYERS]; +static tic_t spam_tokens[MAXPLAYERS] = { 1 }; // fill the buffer with 1 so the motd can be sent. static tic_t spam_tics[MAXPLAYERS]; /** Receives a message, processing an ::XD_SAY command.