return;
case 88: /* X key */
o->fov *= 1.05;
+ if ( o->fov > FG_FOV_MAX ) {
+ o->fov = FG_FOV_MAX;
+ }
return;
case 90: /* Z key */
w->visibility /= 1.10;
return;
case 120: /* X key */
o->fov /= 1.05;
+ if ( o->fov < FG_FOV_MIN ) {
+ o->fov = FG_FOV_MIN;
+ }
return;
case 122: /* z key */
w->visibility *= 1.10;
/* $Log$
-/* Revision 1.8 1998/05/13 18:29:56 curt
-/* Added a keyboard binding to dynamically adjust field of view.
-/* Added a command line option to specify fov.
-/* Adjusted terrain color.
-/* Root path info moved to fgOPTIONS.
-/* Added ability to parse options out of a config file.
+/* Revision 1.9 1998/05/16 13:05:21 curt
+/* Added limits to fov.
/*
+ * Revision 1.8 1998/05/13 18:29:56 curt
+ * Added a keyboard binding to dynamically adjust field of view.
+ * Added a command line option to specify fov.
+ * Adjusted terrain color.
+ * Root path info moved to fgOPTIONS.
+ * Added ability to parse options out of a config file.
+ *
* Revision 1.7 1998/05/07 23:14:14 curt
* Added "D" key binding to set autopilot heading.
* Made frame rate calculation average out over last 10 frames.