]> git.mxchange.org Git - flightgear.git/blob - Main/fg_init.cxx
Added a keyboard binding to dynamically adjust field of view.
[flightgear.git] / Main / fg_init.cxx
1 //
2 // fg_init.cxx -- Flight Gear top level initialization routines
3 //
4 // Written by Curtis Olson, started August 1997.
5 //
6 // Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 //
22 //
23 // $Id$
24 // (Log is kept at end of this file)
25
26
27 #ifdef HAVE_CONFIG_H
28 #  include <config.h>
29 #endif
30
31 #include <stdio.h>
32 #include <stdlib.h>
33
34 #include <Include/fg_constants.h>
35 #include <Include/general.h>
36
37 #include <Aircraft/aircraft.h>
38 #include <Astro/moon.hxx>
39 #include <Astro/planets.hxx>
40 #include <Astro/sky.hxx>
41 #include <Astro/stars.hxx>
42 #include <Astro/sun.hxx>
43 #include <Autopilot/autopilot.h>
44 #include <Cockpit/cockpit.hxx>
45 #include <Debug/fg_debug.h>
46 #include <Joystick/joystick.h>
47 #include <Math/fg_random.h>
48 #include <Scenery/scenery.hxx>
49 #include <Scenery/tilemgr.hxx>
50 #include <Time/event.hxx>
51 #include <Time/fg_time.hxx>
52 #include <Time/light.hxx>
53 #include <Time/sunpos.hxx>
54 #include <Weather/weather.h>
55
56 #include "airports.hxx"
57 #include "fg_init.hxx"
58 #include "options.hxx"
59 #include "views.hxx"
60
61 // extern int show_hud;             // HUD state
62 extern int displayInstruments;
63 extern const char *default_root;
64
65
66 // Set initial position
67 int fgInitPosition( void ) {
68     fgFLIGHT *f;
69     fgOPTIONS *o;
70
71     f = current_aircraft.flight;
72     o = &current_options;
73
74     // If nothing else is specified, default initial position is
75     // Globe, AZ (P13)
76     FG_Longitude = ( -110.6642444 ) * DEG_TO_RAD;
77     FG_Latitude  = (  33.3528917 ) * DEG_TO_RAD;
78     FG_Runway_altitude = (3234.5 + 300);
79     FG_Altitude = FG_Runway_altitude + 3.758099;
80
81     // Initial Position north of the city of Globe
82     // FG_Longitude = ( -398673.28 / 3600.0 ) * DEG_TO_RAD;
83     // FG_Latitude  = (  120625.64 / 3600.0 ) * DEG_TO_RAD;
84     // FG_Longitude = ( -397867.44 / 3600.0 ) * DEG_TO_RAD;
85     // FG_Latitude  = (  119548.21 / 3600.0 ) * DEG_TO_RAD;
86     // FG_Altitude = 0.0 + 3.758099;
87
88     // Initial Position near where I used to live in Globe, AZ
89     // FG_Longitude = ( -398757.6 / 3600.0 ) * DEG_TO_RAD;
90     // FG_Latitude  = (  120160.0 / 3600.0 ) * DEG_TO_RAD;
91     // FG_Runway_altitude = 4000.0;
92     // FG_Altitude = FG_Runway_altitude + 3.758099;
93
94     // Initial Position: 10125 Jewell St. NE
95     // FG_Longitude = ( -93.15 ) * DEG_TO_RAD;
96     // FG_Latitude  = (  45.15 ) * DEG_TO_RAD;
97     // FG_Runway_altitude = 950.0;
98     // FG_Altitude = FG_Runway_altitude + 3.758099;
99
100     // Initial Position near KHSP (Hot Springs, VA)
101     // FG_Longitude = (-79.8338964 + 0.01) * DEG_TO_RAD;
102     // FG_Latitude  = ( 37.9514564 + 0.008) * DEG_TO_RAD;
103     // FG_Runway_altitude = (3792 + 2800);
104     // FG_Altitude = FG_Runway_altitude + 3.758099;
105
106     // Initial Position at (SEZ) SEDONA airport
107     // FG_Longitude = (-111.7884614 + 0.01) * DEG_TO_RAD;
108     // FG_Latitude  = (  34.8486289 - 0.015) * DEG_TO_RAD;
109     // FG_Runway_altitude = (4827 + 450);
110     // FG_Altitude = FG_Runway_altitude + 3.758099;
111
112     // Initial Position: Somewhere near the Grand Canyon
113     // FG_Longitude = ( -112.5 ) * DEG_TO_RAD;
114     // FG_Latitude  = (  36.5 ) * DEG_TO_RAD;
115     // FG_Runway_altitude = 8000.0;
116     // FG_Altitude = FG_Runway_altitude + 3.758099;
117
118     // Initial Position: Jim Brennon's Kingmont Observatory
119     // FG_Longitude = ( -121.1131667 ) * DEG_TO_RAD;
120     // FG_Latitude  = (   38.8293917 ) * DEG_TO_RAD;
121     // FG_Runway_altitude = 920.0;
122     // FG_Altitude = FG_Runway_altitude + 3.758099;
123
124     // probably interesting for european team members
125     // That is: If I can get the scenery to work -;) (Durk)
126  
127     // Eclipse Watching w73.5 n10 (approx) 18:00 UT
128     // FG_Longitude = ( -73.5 ) * DEG_TO_RAD;
129     // FG_Latitude  = (  10.0 ) * DEG_TO_RAD;
130     // FG_Runway_altitude = 0.0;
131     // FG_Altitude = FG_Runway_altitude + 3.758099;
132
133     // Test Position
134     // FG_Longitude = (  8.5 ) * DEG_TO_RAD;
135     // FG_Latitude  = ( 47.5 ) * DEG_TO_RAD;
136     // FG_Runway_altitude = ( 6000 );
137     // FG_Altitude = FG_Runway_altitude + 3.758099;
138
139     if ( strlen(o->airport_id) ) {
140         fgAIRPORTS airports;
141         fgAIRPORT a;
142
143         fgPrintf( FG_GENERAL, FG_INFO, 
144                   "Attempting to set starting position from airport code %s.\n",
145                   o->airport_id);
146
147         airports.load("Airports");
148         a = airports.search(o->airport_id);
149         if ( strcmp(a.id, "none") == 0 ) {
150             fgPrintf( FG_GENERAL, FG_EXIT, 
151                       "Failed to find %s in database.\n", o->airport_id);
152         } else {
153             FG_Longitude = ( a.longitude ) * DEG_TO_RAD;
154             FG_Latitude  = ( a.latitude ) * DEG_TO_RAD;
155             FG_Runway_altitude = ( a.elevation + 300 );
156             FG_Altitude = FG_Runway_altitude + 3.758099;
157         }
158     }
159     
160     fgPrintf( FG_GENERAL, FG_INFO, 
161               "Initial position is: (%.4f, %.4f, %.2f)\n", 
162               FG_Longitude * RAD_TO_DEG, FG_Latitude * RAD_TO_DEG, 
163               FG_Altitude * FEET_TO_METER);
164
165     return(1);
166 }
167
168
169 // General house keeping initializations
170 int fgInitGeneral( void ) {
171     fgGENERAL *g;
172     fgOPTIONS *o;
173     int i;
174
175     g = &general;
176     o = &current_options;
177
178     fgPrintf( FG_GENERAL, FG_INFO, "General Initialization\n" );
179     fgPrintf( FG_GENERAL, FG_INFO, "======= ==============\n" );
180
181     if ( !strlen(o->fg_root) ) { 
182         // No root path set? Then assume, we will exit if this is
183         // wrong when looking for support files.
184         fgPrintf( FG_GENERAL, FG_EXIT, "%s %s\n",
185                   "Cannot continue without environment variable FG_ROOT",
186                   "being defined.");
187     }
188     fgPrintf( FG_GENERAL, FG_INFO, "FG_ROOT = %s\n\n", o->fg_root);
189
190     // prime the frame rate counter pump
191     for ( i = 0; i < FG_FRAME_RATE_HISTORY; i++ ) {
192         g->frames[i] = 0.0;
193     }
194
195     return ( 1 ); 
196 }
197
198
199 // This is the top level init routine which calls all the other
200 // initialization routines.  If you are adding a subsystem to flight
201 // gear, its initialization call should located in this routine.
202 // Returns non-zero if a problem encountered.
203 int fgInitSubsystems( void ) {
204     double cur_elev;
205
206     fgFLIGHT *f;
207     fgLIGHT *l;
208     fgTIME *t;
209     fgVIEW *v;
210
211     l = &cur_light_params;
212     t = &cur_time_params;
213     v = &current_view;
214
215     fgPrintf( FG_GENERAL, FG_INFO, "Initialize Subsystems\n");
216     fgPrintf( FG_GENERAL, FG_INFO, "========== ==========\n");
217
218     // seed the random number generater
219     fg_srandom();
220
221     // The following section sets up the flight model EOM parameters
222     // and should really be read in from one or more files.
223
224     // Must happen before any of the flight model or control
225     // parameters are set
226
227     fgAircraftInit();   // In the future this might not be the case.
228     f = current_aircraft.flight;
229
230     // set the initial position
231     fgInitPosition();
232
233     // Initial Velocity
234     FG_V_north = 0.0;   //  7.287719E+00
235     FG_V_east  = 0.0;   //  1.521770E+03
236     FG_V_down  = 0.0;   // -1.265722E-05
237
238     // Initial Orientation
239     FG_Phi   = -2.658474E-06;
240     FG_Theta =  7.401790E-03;
241     FG_Psi   =  270.0 * DEG_TO_RAD;
242
243     // Initial Angular B rates
244     FG_P_body = 7.206685E-05;
245     FG_Q_body = 0.000000E+00;
246     FG_R_body = 9.492658E-05;
247
248     FG_Earth_position_angle = 0.000000E+00;
249
250     // Mass properties and geometry values
251     FG_Mass = 8.547270E+01;
252     FG_I_xx = 1.048000E+03;
253     FG_I_yy = 3.000000E+03;
254     FG_I_zz = 3.530000E+03;
255     FG_I_xz = 0.000000E+00;
256
257     // CG position w.r.t. ref. point
258     FG_Dx_cg = 0.000000E+00;
259     FG_Dy_cg = 0.000000E+00;
260     FG_Dz_cg = 0.000000E+00;
261
262     // Initialize the event manager
263     fgEventInit();
264
265     // Output event stats every 60 seconds
266     fgEventRegister( "fgEventPrintStats()", fgEventPrintStats,
267                      FG_EVENT_READY, 60000 );
268
269     // Initialize the time dependent variables
270     fgTimeInit(t);
271     fgTimeUpdate(f, t);
272
273     // Initialize view parameters
274     // ---->
275     fgViewInit(v);
276     fgViewUpdate(f, v, l);
277
278     // Initialize the orbital elements of sun, moon and mayor planets
279     fgSolarSystemInit(*t);
280
281     // Initialize the Stars subsystem
282     if( fgStarsInit() ) {
283         // Stars initialized ok.
284     } else {
285         fgPrintf( FG_GENERAL, FG_EXIT, "Error in Stars initialization!\n" );
286     }
287
288     // Initialize the planetary subsystem
289     fgEventRegister("fgPlanetsInit()", fgPlanetsInit, FG_EVENT_READY, 600000);
290
291     // Initialize the sun's position 
292     fgEventRegister("fgSunInit()", fgSunInit, FG_EVENT_READY, 30000 );
293
294     // Intialize the moon's position
295     fgEventRegister( "fgMoonInit()", fgMoonInit, FG_EVENT_READY, 600000 );
296
297     // fgUpdateSunPos() needs a few position and view parameters set
298     // so it can calculate local relative sun angle and a few other
299     // things for correctly orienting the sky.
300     // ---->
301     fgUpdateSunPos();
302
303     // Initialize Lighting interpolation tables
304     // ---->
305     fgLightInit();
306
307     // update the lighting parameters (based on sun angle)
308     fgEventRegister( "fgLightUpdate()", fgLightUpdate,
309                      FG_EVENT_READY, 30000 );
310
311     // Initialize the weather modeling subsystem
312     fgWeatherInit();
313
314     // update the weather for our current position
315     fgEventRegister( "fgWeatherUpdate()", fgWeatherUpdate,
316                      FG_EVENT_READY, 120000 );
317
318     // Initialize the Cockpit subsystem
319     if( fgCockpitInit( &current_aircraft )) {
320         // Cockpit initialized ok.
321     } else {
322         fgPrintf( FG_GENERAL, FG_EXIT, "Error in Cockpit initialization!\n" );
323     }
324
325     // Initialize the "sky"
326     // ---->
327     fgSkyInit();
328
329     // Initialize the Scenery Management subsystem
330     if ( fgSceneryInit() ) {
331         // Scenery initialized ok.
332     } else {
333         fgPrintf( FG_GENERAL, FG_EXIT, "Error in Scenery initialization!\n" );
334     }
335
336
337     if( fgTileMgrInit() ) {
338         // Load the local scenery data
339         fgTileMgrUpdate();
340     } else {
341         fgPrintf( FG_GENERAL, FG_EXIT, 
342                   "Error in Tile Manager initialization!\n" );
343     }
344
345     // I'm just sticking this here for now, it should probably move
346     // eventually
347         cur_elev = FG_Runway_altitude * FEET_TO_METER;
348         if ( cur_elev > -9990.0 ) {
349             FG_Runway_altitude = cur_elev * METER_TO_FEET;
350         }
351
352         if ( FG_Altitude < FG_Runway_altitude ) {
353             FG_Altitude = FG_Runway_altitude + 3.758099;
354         }
355
356         fgPrintf( FG_GENERAL, FG_INFO,
357              "Updated position (after elevation adj): (%.4f, %.4f, %.2f)\n",
358              FG_Latitude * RAD_TO_DEG, FG_Longitude * RAD_TO_DEG,
359              FG_Altitude * FEET_TO_METER);
360     // end of thing that I just stuck in that I should probably move
361                 
362     // Initialize the flight model subsystem data structures base on
363     // above values
364
365     fgFlightModelInit( FG_LARCSIM, f, 1.0 / DEFAULT_MODEL_HZ );
366
367     // Let's not show the instrument panel
368     displayInstruments = 0;
369
370     // Joystick support
371     if (fgJoystickInit(0) ) {
372         // Joystick initialized ok.
373     } else {
374         fgPrintf( FG_GENERAL, FG_EXIT, "Error in Joystick initialization!\n" );
375     }
376
377     // Autopilot init added here, by Jeff Goeke-Smith
378     fgAPInit(&current_aircraft);
379     
380     fgPrintf(FG_GENERAL, FG_INFO,"\n");
381
382     return(1);
383 }
384
385
386 // $Log$
387 // Revision 1.12  1998/05/13 18:29:58  curt
388 // Added a keyboard binding to dynamically adjust field of view.
389 // Added a command line option to specify fov.
390 // Adjusted terrain color.
391 // Root path info moved to fgOPTIONS.
392 // Added ability to parse options out of a config file.
393 //
394 // Revision 1.11  1998/05/07 23:14:15  curt
395 // Added "D" key binding to set autopilot heading.
396 // Made frame rate calculation average out over last 10 frames.
397 // Borland C++ floating point exception workaround.
398 // Added a --tile-radius=n option.
399 //
400 // Revision 1.10  1998/05/06 03:16:24  curt
401 // Added an averaged global frame rate counter.
402 // Added an option to control tile radius.
403 //
404 // Revision 1.9  1998/05/03 00:47:31  curt
405 // Added an option to enable/disable full-screen mode.
406 //
407 // Revision 1.8  1998/04/30 12:34:18  curt
408 // Added command line rendering options:
409 //   enable/disable fog/haze
410 //   specify smooth/flat shading
411 //   disable sky blending and just use a solid color
412 //   enable wireframe drawing mode
413 //
414 // Revision 1.7  1998/04/28 01:20:22  curt
415 // Type-ified fgTIME and fgVIEW.
416 // Added a command line option to disable textures.
417 //
418 // Revision 1.6  1998/04/26 05:10:03  curt
419 // "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
420 //
421 // Revision 1.5  1998/04/25 22:06:30  curt
422 // Edited cvs log messages in source files ... bad bad bad!
423 //
424 // Revision 1.4  1998/04/25 20:24:01  curt
425 // Cleaned up initialization sequence to eliminate interdependencies
426 // between sun position, lighting, and view position.  This creates a
427 // valid single pass initialization path.
428 //
429 // Revision 1.3  1998/04/25 15:11:11  curt
430 // Added an command line option to set starting position based on airport ID.
431 //
432 // Revision 1.2  1998/04/24 00:49:20  curt
433 // Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
434 // Trying out some different option parsing code.
435 // Some code reorganization.
436 //
437 // Revision 1.1  1998/04/22 13:25:44  curt
438 // C++ - ifing the code.
439 // Starting a bit of reorganization of lighting code.
440 //
441 // Revision 1.56  1998/04/18 04:11:28  curt
442 // Moved fg_debug to it's own library, added zlib support.
443 //
444 // Revision 1.55  1998/04/14 02:21:03  curt
445 // Incorporated autopilot heading hold contributed by:  Jeff Goeke-Smith
446 // <jgoeke@voyager.net>
447 //
448 // Revision 1.54  1998/04/08 23:35:36  curt
449 // Tweaks to Gnu automake/autoconf system.
450 //
451 // Revision 1.53  1998/04/03 22:09:06  curt
452 // Converting to Gnu autoconf system.
453 //
454 // Revision 1.52  1998/03/23 21:24:38  curt
455 // Source code formating tweaks.
456 //
457 // Revision 1.51  1998/03/14 00:31:22  curt
458 // Beginning initial terrain texturing experiments.
459 //
460 // Revision 1.50  1998/03/09 22:46:19  curt
461 // Minor tweaks.
462 //
463 // Revision 1.49  1998/02/23 19:07:59  curt
464 // Incorporated Durk's Astro/ tweaks.  Includes unifying the sun position
465 // calculation code between sun display, and other FG sections that use this
466 // for things like lighting.
467 //
468 // Revision 1.48  1998/02/21 14:53:15  curt
469 // Added Charlie's HUD changes.
470 //
471 // Revision 1.47  1998/02/19 13:05:53  curt
472 // Incorporated some HUD tweaks from Michelle America.
473 // Tweaked the sky's sunset/rise colors.
474 // Other misc. tweaks.
475 //
476 // Revision 1.46  1998/02/18 15:07:06  curt
477 // Tweaks to build with SGI OpenGL (and therefor hopefully other accelerated
478 // drivers will work.)
479 //
480 // Revision 1.45  1998/02/16 13:39:43  curt
481 // Miscellaneous weekend tweaks.  Fixed? a cache problem that caused whole
482 // tiles to occasionally be missing.
483 //
484 // Revision 1.44  1998/02/12 21:59:50  curt
485 // Incorporated code changes contributed by Charlie Hotchkiss
486 // <chotchkiss@namg.us.anritsu.com>
487 //
488 // Revision 1.43  1998/02/11 02:50:40  curt
489 // Minor changes.
490 //
491 // Revision 1.42  1998/02/09 22:56:58  curt
492 // Removed "depend" files from cvs control.  Other minor make tweaks.
493 //
494 // Revision 1.41  1998/02/09 15:07:50  curt
495 // Minor tweaks.
496 //
497 // Revision 1.40  1998/02/07 15:29:44  curt
498 // Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
499 // <chotchkiss@namg.us.anritsu.com>
500 //
501 // Revision 1.39  1998/02/03 23:20:25  curt
502 // Lots of little tweaks to fix various consistency problems discovered by
503 // Solaris' CC.  Fixed a bug in fg_debug.c with how the fgPrintf() wrapper
504 // passed arguments along to the real printf().  Also incorporated HUD changes
505 // by Michele America.
506 //
507 // Revision 1.38  1998/02/02 20:53:58  curt
508 // Incorporated Durk's changes.
509 //
510 // Revision 1.37  1998/02/01 03:39:54  curt
511 // Minor tweaks.
512 //
513 // Revision 1.36  1998/01/31 00:43:13  curt
514 // Added MetroWorks patches from Carmen Volpe.
515 //
516 // Revision 1.35  1998/01/27 00:47:57  curt
517 // Incorporated Paul Bleisch's <pbleisch@acm.org> new debug message
518 // system and commandline/config file processing code.
519 //
520 // Revision 1.34  1998/01/22 02:59:37  curt
521 // Changed #ifdef FILE_H to #ifdef _FILE_H
522 //
523 // Revision 1.33  1998/01/21 21:11:34  curt
524 // Misc. tweaks.
525 //
526 // Revision 1.32  1998/01/19 19:27:08  curt
527 // Merged in make system changes from Bob Kuehne <rpk@sgi.com>
528 // This should simplify things tremendously.
529 //
530 // Revision 1.31  1998/01/19 18:40:32  curt
531 // Tons of little changes to clean up the code and to remove fatal errors
532 // when building with the c++ compiler.
533 //
534 // Revision 1.30  1998/01/13 00:23:09  curt
535 // Initial changes to support loading and management of scenery tiles.  Note,
536 // there's still a fair amount of work left to be done.
537 //
538 // Revision 1.29  1998/01/08 02:22:08  curt
539 // Beginning to integrate Tile management subsystem.
540 //
541 // Revision 1.28  1998/01/07 03:18:58  curt
542 // Moved astronomical stuff from .../Src/Scenery to .../Src/Astro/
543 //
544 // Revision 1.27  1998/01/05 18:44:35  curt
545 // Add an option to advance/decrease time from keyboard.
546 //
547 // Revision 1.26  1997/12/30 23:09:04  curt
548 // Tweaking initialization sequences.
549 //
550 // Revision 1.25  1997/12/30 22:22:33  curt
551 // Further integration of event manager.
552 //
553 // Revision 1.24  1997/12/30 20:47:44  curt
554 // Integrated new event manager with subsystem initializations.
555 //
556 // Revision 1.23  1997/12/30 16:36:50  curt
557 // Merged in Durk's changes ...
558 //
559 // Revision 1.22  1997/12/19 23:34:05  curt
560 // Lot's of tweaking with sky rendering and lighting.
561 //
562 // Revision 1.21  1997/12/19 16:45:00  curt
563 // Working on scene rendering order and options.
564 //
565 // Revision 1.20  1997/12/18 23:32:33  curt
566 // First stab at sky dome actually starting to look reasonable. :-)
567 //
568 // Revision 1.19  1997/12/17 23:13:36  curt
569 // Began working on rendering a sky.
570 //
571 // Revision 1.18  1997/12/15 23:54:49  curt
572 // Add xgl wrappers for debugging.
573 // Generate terrain normals on the fly.
574 //
575 // Revision 1.17  1997/12/15 20:59:09  curt
576 // Misc. tweaks.
577 //
578 // Revision 1.16  1997/12/12 19:52:48  curt
579 // Working on lightling and material properties.
580 //
581 // Revision 1.15  1997/12/11 04:43:55  curt
582 // Fixed sun vector and lighting problems.  I thing the moon is now lit
583 // correctly.
584 //
585 // Revision 1.14  1997/12/10 22:37:47  curt
586 // Prepended "fg" on the name of all global structures that didn't have it yet.
587 // i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
588 //
589 // Revision 1.13  1997/11/25 19:25:32  curt
590 // Changes to integrate Durk's moon/sun code updates + clean up.
591 //
592 // Revision 1.12  1997/11/15 18:16:35  curt
593 // minor tweaks.
594 //
595 // Revision 1.11  1997/10/30 12:38:42  curt
596 // Working on new scenery subsystem.
597 //
598 // Revision 1.10  1997/10/25 03:24:23  curt
599 // Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
600 //
601 // Revision 1.9  1997/09/23 00:29:39  curt
602 // Tweaks to get things to compile with gcc-win32.
603 //
604 // Revision 1.8  1997/09/22 14:44:20  curt
605 // Continuing to try to align stars correctly.
606 //
607 // Revision 1.7  1997/09/16 15:50:30  curt
608 // Working on star alignment and time issues.
609 //
610 // Revision 1.6  1997/09/05 14:17:30  curt
611 // More tweaking with stars.
612 //
613 // Revision 1.5  1997/09/04 02:17:36  curt
614 // Shufflin' stuff.
615 //
616 // Revision 1.4  1997/08/27 21:32:26  curt
617 // Restructured view calculation code.  Added stars.
618 //
619 // Revision 1.3  1997/08/27 03:30:19  curt
620 // Changed naming scheme of basic shared structures.
621 //
622 // Revision 1.2  1997/08/25 20:27:23  curt
623 // Merged in initial HUD and Joystick code.
624 //
625 // Revision 1.1  1997/08/23 01:46:20  curt
626 // Initial revision.
627 //
628