- block game input during intro cutscenes

Fixes #158
This commit is contained in:
Christoph Oelckers 2020-08-11 00:42:08 +02:00
parent 7243c08379
commit 000c00dc91
2 changed files with 4 additions and 1 deletions

View file

@ -42,6 +42,7 @@
#include "m_joy.h"
#include "vm.h"
#include "cheathandler.h"
#include "gamestate.h"
bool G_Responder(event_t* ev);
@ -70,6 +71,8 @@ void D_ProcessEvents (void)
continue;
if (ev->type == EV_DeviceChange)
UpdateJoystickMenu(I_UpdateDeviceList());
if (gamestate == GS_INTRO)
continue;
if (C_Responder (ev))
continue; // console ate the event
if (M_Responder (ev))

View file

@ -387,10 +387,10 @@ bool GameTicker()
void startmainmenu()
{
gamestate = GS_DEMOSCREEN;
M_StartControlPanel(false);
M_SetMenu(NAME_Mainmenu);
FX_StopAllSounds();
gamestate = GS_DEMOSCREEN;
}
//---------------------------------------------------------------------------