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

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