mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06: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.
|
||||
"""
|
||||
if fov == 0:
|
||||
return 'Cannot set FOV to 0!'
|
||||
base.camLens.setMinFov(fov/(4./3.))
|
||||
if fov == OTPGlobals.DefaultCameraFov:
|
||||
return 'Set FOV to the default.'
|
||||
|
|
Loading…
Reference in a new issue