mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 05:01:41 +00:00
Add a null check in PlayerPawn::CheckFOV
This commit is contained in:
parent
feb3520ee9
commit
c7edb9d22f
1 changed files with 2 additions and 0 deletions
|
@ -928,6 +928,8 @@ class PlayerPawn : Actor
|
||||||
{
|
{
|
||||||
let player = self.player;
|
let player = self.player;
|
||||||
|
|
||||||
|
if (!player) return;
|
||||||
|
|
||||||
// [RH] Zoom the player's FOV
|
// [RH] Zoom the player's FOV
|
||||||
float desired = player.DesiredFOV;
|
float desired = player.DesiredFOV;
|
||||||
// Adjust FOV using on the currently held weapon.
|
// Adjust FOV using on the currently held weapon.
|
||||||
|
|
Loading…
Reference in a new issue