ddnet/src/game/server
Robert Müller b8d38f7f49 Fix server crash on DDTeam message with lower sv_max_clients
When the `CGameContext::SendChatTeam` function is used to send a chat message to all members of a DDTeam (e.g. on completed /swap chat command), it was not checked whether the target players are online but only whether they belong to the specified team according to the teams core. However, the default team for unconnected/cleared players is 0 in the teams core, which is the same for players in team 0, so chat messages were being sent to client IDs not corresponding to connected clients when chat messages where supposed to be sent to players in team 0. This was causing the server to crash with the assertion error "erroneous client id" specifically when the server is started with `sv_max_clients` being less than the default, maximum 64.

Closes #7450.
2023-11-13 23:16:21 +01:00
..
entities CCharacter::IsSnappingCharacterInView: Add missing const 2023-11-03 21:36:33 +03:00
gamemodes Fix clang-tidy modernize-use-emplace 2023-10-06 14:06:20 +02:00
ddracechat.cpp Merge pull request #7449 from furo321/lasttp-save 2023-11-12 23:14:12 +00:00
ddracecommands.cpp Add freeze/unfreeze testing commands 2023-11-01 17:26:29 +01:00
entity.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
entity.h Server: Use the tuning params via GameWorld (like in prediction) 2023-09-15 18:04:29 +03:00
eventhandler.cpp rewrite int64_t to CClientMask 2023-01-24 09:27:29 +01:00
eventhandler.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
gamecontext.cpp Fix server crash on DDTeam message with lower sv_max_clients 2023-11-13 23:16:21 +01:00
gamecontext.h Add freeze/unfreeze testing commands 2023-11-01 17:26:29 +01:00
gamecontroller.cpp Remove remains of dbg_stress from server 2023-09-28 20:14:23 +02:00
gamecontroller.h Cleanup declarations 2023-08-15 19:02:17 +03:00
gameworld.cpp Server: Use the tuning params via GameWorld (like in prediction) 2023-09-15 18:04:29 +03:00
gameworld.h Server: Use the tuning params via GameWorld (like in prediction) 2023-09-15 18:04:29 +03:00
player.cpp Merge pull request #7394 from furo321/fix-setafk 2023-10-30 23:03:17 +00:00
player.h Save entire character with /lasttp. 2023-11-12 23:48:36 +01:00
save.cpp Save/load ninja 2023-10-09 11:11:55 +02:00
save.h Save/load ninja 2023-10-09 11:11:55 +02:00
score.cpp Merge #6226 #6230 2023-01-04 18:03:11 +00:00
score.h Fix scoreboard showing wrong best time 2022-12-31 12:36:03 +01:00
scoreworker.cpp Added back underline for sv_regional_rankings 0. 2023-10-30 22:40:04 +01:00
scoreworker.h Delay server race demo ending by 1 second. 2023-10-30 03:32:50 +01:00
teams.cpp Delay server race demo ending by 1 second. 2023-10-30 03:32:50 +01:00
teams.h Bring Team logic into teams.cpp 2023-04-02 21:40:39 -04:00
teehistorian.cpp teehistorian: Omit "prev_game_uuid" instead of setting it to null 2023-08-27 16:11:45 +02:00
teehistorian.h Record previous game ID in teehistorian 2023-08-27 16:11:45 +02:00
teeinfo.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
teeinfo.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00