]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
sv_maxidle_playertospectator: fix joining players getting moved to spec immediately
authorbones_was_here <bones_was_here@xa.org.au>
Sun, 12 Jun 2022 00:00:05 +0000 (10:00 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Sun, 12 Jun 2022 00:00:05 +0000 (10:00 +1000)
commit360d5ed5afd2d5b52131b6633e9c38d2ee069b57
treea839b3160a43dae04386c21bbccc1f04baf1a790
parentc0896f3ad07e80af9cc46f4d48960ea048a55617
sv_maxidle_playertospectator: fix joining players getting moved to spec immediately

In gametypes without teams, if the player left the welcome dialog open for
the duration of sv_maxidle_playertospectator and then clicked join,
they were immediately moved back to spec for idling.

This could happen with any menu dialog or console command that allowed
joining without changing CSQC button state or mouse angle.

It was not noticeable prior to !1021 because pressing jump to join
changed the player's button state which reset their idlesince.
sv_maxidle_minplayers would have prevented this being found in local testing.
qcsrc/server/command/cmd.qc
qcsrc/server/teamplay.qc