Fix mouse being grabbed in intermission and cutscenes

This commit is contained in:
Louis-Antoine 2020-04-24 18:33:35 +02:00
parent bfb2467796
commit e4f2c1dc70

View file

@ -372,7 +372,9 @@ static boolean IgnoreMouse(void)
return false;
if (menuactive)
return !M_MouseNeeded();
if (paused || con_destlines || chat_on || gamestate != GS_LEVEL)
if (paused || con_destlines || chat_on)
return true;
if (gamestate != GS_LEVEL && gamestate != GS_INTERMISSION && gamestate != GS_CUTSCENE)
return true;
return false;
}