Skip to content
Snippets Groups Projects
Commit 3c0761f8 authored by sphere's avatar sphere
Browse files

Merge branch 'fix-players-idle-kick-cutscene' into 'next'

Fix players getting kicked by auto-kick during cutscenes

See merge request STJr/SRB2!2384
parents ee96ed12 2804f290
No related branches found
No related tags found
1 merge request!2384Fix players getting kicked by auto-kick during cutscenes
Pipeline #2923 passed
......@@ -1362,7 +1362,7 @@ static void IdleUpdate(void)
for (i = 1; i < MAXPLAYERS; i++)
{
if (cv_idletime.value && playeringame[i] && playernode[i] != UINT8_MAX && !players[i].quittime && !players[i].spectator && !players[i].bot && !IsPlayerAdmin(i) && i != serverplayer)
if (cv_idletime.value && playeringame[i] && playernode[i] != UINT8_MAX && !players[i].quittime && !players[i].spectator && !players[i].bot && !IsPlayerAdmin(i) && i != serverplayer && gamestate == GS_LEVEL)
{
if (players[i].cmd.forwardmove || players[i].cmd.sidemove || players[i].cmd.buttons)
players[i].lastinputtime = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment