mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-20 18:37:48 -04:00
don't grab mouse during "advancedemo" stage (from Chocolate Doom)
This commit is contained in:
parent
04548fbe61
commit
09df177be4
@ -59,6 +59,8 @@ void D_PageDrawer(void);
|
||||
void D_AdvanceDemo(void);
|
||||
void D_StartTitle(void);
|
||||
|
||||
extern boolean advancedemo;
|
||||
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user