Merge branch 'fix-motd-not-being-sent' into 'next'

Fix MOTD not being sent to players on first join

Closes #1194

See merge request STJr/SRB2!2317
This commit is contained in:
Logan Aerl Arias 2024-02-18 01:14:13 +00:00
commit 4109f7168b

View file

@ -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.