Keep mouse grabbed when opening a PDA or menu. fixes #122

This commit is contained in:
Robert Beckebans 2014-05-20 23:33:57 +02:00
parent 54ec429fa8
commit ae4ef25160

View file

@ -498,7 +498,11 @@ void idCommonLocal::Frame()
#endif
// RB end, DG end
{
Sys_GrabMouseCursor( false );
// RB: only release the mouse when opening a PDA or menu
if( console->Active() )
{
Sys_GrabMouseCursor( false );
}
usercmdGen->InhibitUsercmd( INHIBIT_SESSION, true );
chatting = true;
}