Skip to content

Commit

Permalink
- don't check for a map's freelook setting if there is no map.
Browse files Browse the repository at this point in the history
Apparently on macOS, game events even get sent in the menu. This never happened on Windows…
  • Loading branch information
coelckers committed Jan 16, 2019
1 parent 49abe36 commit a920906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_game.cpp
Expand Up @@ -757,7 +757,7 @@ void G_AddViewPitch (int look, bool mouse)
return;
}
look = LookAdjust(look);
if (currentSession && !currentSession->Levelinfo[0]->IsFreelookAllowed())
if (currentSession && currentSession->Levelinfo.Size() > 0 && !currentSession->Levelinfo[0]->IsFreelookAllowed())
{
LocalViewPitch = 0;
}
Expand Down

0 comments on commit a920906

Please sign in to comment.