don't send gameplay packets to clients who haven't loaded in

This commit is contained in:
p2r3
2025-08-28 02:27:04 +03:00
parent de501afb1c
commit fc327299b4
3 changed files with 10 additions and 1 deletions

View File

@@ -1010,6 +1010,7 @@ int cs_chat (int client_fd) {
// Forward message to all connected players
for (int i = 0; i < MAX_PLAYERS; i ++) {
if (player_data[i].client_fd == -1) continue;
if (player_data[i].flags & 0x20) continue;
sc_systemChat(player_data[i].client_fd, (char *)recv_buffer, message_len + name_len + 3);
}