- don't check for a map's freelook setting if there is no map.

Apparently on macOS, game events even get sent in the menu. This never happened on Windows…
This commit is contained in:
Christoph Oelckers 2019-01-16 05:28:49 +01:00
parent 49abe3678a
commit a92090690e

View file

@ -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;
}