]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
join queue: leave queue with F3 (spec) when queued to swap teams
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 10 May 2025 10:58:35 +0000 (20:58 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 13 May 2025 08:26:37 +0000 (18:26 +1000)
commit005a78edcb4e21ddbe8b5e5c6cf9540e5fd97f33
tree3a239b80156451d92eecf8480b51bf261abb9ef0
parent687f119040020ae775f0e52cf8fdd814c6e3b09f
join queue: leave queue with F3 (spec) when queued to swap teams

Fixes erroring out the server or killing the player when they're queued
to switch teams and try to leave the queue.

IIRC the initial implementation put the player on the team they wanted
to join even when they were only queued, which would explain the
SetPlayerTeam() call (which causes the server error) in
ClientKill_Now_TeamChange().
qcsrc/server/clientkill.qc
qcsrc/server/command/cmd.qc