Add crash fix for setFov

This commit is contained in:
John Cote 2015-07-09 17:22:45 -04:00
parent 071ee08176
commit 36cddfeace

View file

@ -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.'