start = mktime(&mt);
/* printf("start1 = %ld\n", start);
- fgPrintf( FG_EVENT, FG_DEBUG, "start2 = %s", ctime(&start));
- fgPrintf( FG_EVENT, FG_DEBUG, "start3 = %ld\n", start); */
+ fgPrintf( FG_EVENT, FG_DEBUG, "start2 = %s", ctime(&start));
+ fgPrintf( FG_EVENT, FG_DEBUG, "start3 = %ld\n", start); */
+#ifndef __CYGWIN32__
daylight = mt.tm_isdst;
+#else
+ /* Yargs ... I'm just hardcoding this arbitrarily so it doesn't
+ * jump around */
+ daylight = 0;
+ fgPrintf( FG_EVENT, FG_WARN,
+ "no daylight savings info ... being hardcoded to %d\n", daylight);
+#endif
#ifdef USE_FTIME
ftime(¤t);
if ( daylight > 0 ) {
daylight = 1;
} else if ( daylight < 0 ) {
- fgPrintf( FG_EVENT, FG_WARN, "OOOPS, big time problem in fg_time.c, no daylight savings info.\n");
+ fgPrintf( FG_EVENT, FG_WARN,
+ "OOOPS, big time problem in fg_time.c, no daylight savings info.\n");
}
offset = -(timezone / 3600 - daylight);
/* Update the time dependent variables */
-void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t) {
+void fgTimeUpdate(fgFLIGHT *f, struct fgTIME *t) {
double gst_precise, gst_course;
fgPrintf( FG_EVENT, FG_BULK, "Updating time\n");
/* $Log$
-/* Revision 1.31 1998/01/27 00:48:06 curt
-/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
-/* system and commandline/config file processing code.
+/* Revision 1.34 1998/02/07 15:29:47 curt
+/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+/* <chotchkiss@namg.us.anritsu.com>
/*
+ * Revision 1.33 1998/02/02 20:54:04 curt
+ * Incorporated Durk's changes.
+ *
+ * Revision 1.32 1998/02/01 03:39:56 curt
+ * Minor tweaks.
+ *
+ * Revision 1.31 1998/01/27 00:48:06 curt
+ * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * system and commandline/config file processing code.
+ *
* Revision 1.30 1998/01/21 21:11:35 curt
* Misc. tweaks.
*