mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 10:11:11 +00:00
- 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:
parent
49abe3678a
commit
a92090690e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue