mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Add crash fix for setFov
This commit is contained in:
parent
071ee08176
commit
36cddfeace
1 changed files with 2 additions and 0 deletions
|
@ -336,6 +336,8 @@ def setFov(fov=OTPGlobals.DefaultCameraFov):
|
||||||
"""
|
"""
|
||||||
Set your field of view in-game.
|
Set your field of view in-game.
|
||||||
"""
|
"""
|
||||||
|
if fov == 0:
|
||||||
|
return 'Cannot set FOV to 0!'
|
||||||
base.camLens.setMinFov(fov/(4./3.))
|
base.camLens.setMinFov(fov/(4./3.))
|
||||||
if fov == OTPGlobals.DefaultCameraFov:
|
if fov == OTPGlobals.DefaultCameraFov:
|
||||||
return 'Set FOV to the default.'
|
return 'Set FOV to the default.'
|
||||||
|
|
Loading…
Reference in a new issue