don't grab mouse during "advancedemo" stage (from Chocolate Doom)

This commit is contained in:
Roman Fomin 2024-04-26 22:59:08 +07:00
parent 04548fbe61
commit 09df177be4
3 changed files with 4 additions and 2 deletions

View File

@ -59,6 +59,8 @@ void D_PageDrawer(void);
void D_AdvanceDemo(void);
void D_StartTitle(void);
extern boolean advancedemo;
#endif
//----------------------------------------------------------------------------

View File

@ -18,6 +18,7 @@
//
#include "d_loop.h"
#include "d_main.h"
#include "d_player.h"
#include "d_ticcmd.h"
#include "doomdef.h"
@ -67,7 +68,6 @@ void D_DoAdvanceDemo(void);
void RunTic(ticcmd_t *cmds, boolean *ingame)
{
extern boolean advancedemo;
unsigned int i;
// Check for player quits.

View File

@ -169,7 +169,7 @@ static boolean MouseShouldBeGrabbed(void)
// only grab mouse when playing levels (but not demos)
return (gamestate == GS_LEVEL || gamestate == GS_INTERMISSION)
&& !demoplayback;
&& !demoplayback && !advancedemo;
}
// [FG] mouse grabbing from Chocolate Doom 3.0