mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-20 07:48:18 +00:00
b8d38f7f49
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. |
||
---|---|---|
.. | ||
entities | ||
gamemodes | ||
ddracechat.cpp | ||
ddracecommands.cpp | ||
entity.cpp | ||
entity.h | ||
eventhandler.cpp | ||
eventhandler.h | ||
gamecontext.cpp | ||
gamecontext.h | ||
gamecontroller.cpp | ||
gamecontroller.h | ||
gameworld.cpp | ||
gameworld.h | ||
player.cpp | ||
player.h | ||
save.cpp | ||
save.h | ||
score.cpp | ||
score.h | ||
scoreworker.cpp | ||
scoreworker.h | ||
teams.cpp | ||
teams.h | ||
teehistorian.cpp | ||
teehistorian.h | ||
teeinfo.cpp | ||
teeinfo.h |