Fix a bug with cursor trapping that would prevent it working when loading a saved game

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3109 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2007-12-20 20:15:34 +00:00
parent 35277a4b82
commit f85cadbdd2
1 changed files with 6 additions and 0 deletions

View File

@ -541,6 +541,12 @@ static void initSaveGameLoad(void)
exit(EXIT_FAILURE);
}
screen_StopBackDrop();
// Trap the cursor if cursor snapping is enabled
if (war_GetTrapCursor())
{
SDL_WM_GrabInput(SDL_GRAB_ON);
}
}