Browse Source

engine: client: don't segfault when client wasn't loaded

pull/2/head
a1batross 2 years ago committed by GitHub
parent
commit
ab43486ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      engine/client/input.c

2
engine/client/input.c

@ -276,6 +276,7 @@ void IN_ActivateMouse( void )
return; return;
IN_CheckMouseState( true ); IN_CheckMouseState( true );
if( clgame.dllFuncs.IN_ActivateMouse )
clgame.dllFuncs.IN_ActivateMouse(); clgame.dllFuncs.IN_ActivateMouse();
in_mouseactive = true; in_mouseactive = true;
} }
@ -293,6 +294,7 @@ void IN_DeactivateMouse( void )
return; return;
IN_CheckMouseState( false ); IN_CheckMouseState( false );
if( clgame.dllFuncs.IN_DeactivateMouse )
clgame.dllFuncs.IN_DeactivateMouse(); clgame.dllFuncs.IN_DeactivateMouse();
in_mouseactive = false; in_mouseactive = false;
} }

Loading…
Cancel
Save