From 5e44c9dd0a9e8cce5f7470525871fd4904b50a51 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 31 Jan 1998 00:42:57 +0000 Subject: [PATCH] Added MetroWorks patches from Carmen Volpe. --- Cockpit/cockpit.c | 10 +- Cockpit/depend | 8 +- Cockpit/hud.c | 42 ++-- LaRCsim/Makefile | 3 +- LaRCsim/depend | 2 + Main/GLUTmain.c | 16 +- Main/fg_debug.c | 11 +- Main/fg_init.c | 20 +- Scenery/Makefile | 3 +- Scenery/geometry.c | 150 ------------- Scenery/geometry.h | 75 ------- Scenery/mesh.c | 491 ------------------------------------------- Scenery/mesh.h | 113 ---------- Scenery/obj.c | 23 +- Scenery/obj.h | 11 +- Scenery/scenery.c | 10 +- Scenery/tilecache.c | 37 ++-- Scenery/tilecache.h | 8 +- Scenery/tilemgr.c | 11 +- Simulator/Done | 11 + Simulator/Thanks | 4 + Simulator/Todo | 13 +- Simulator/commondefs | 2 +- Time/depend | 2 - Time/event.c | 42 +++- Time/fg_timer.c | 22 +- 26 files changed, 203 insertions(+), 937 deletions(-) delete mode 100644 Scenery/geometry.c delete mode 100644 Scenery/geometry.h delete mode 100644 Scenery/mesh.c delete mode 100644 Scenery/mesh.h diff --git a/Cockpit/cockpit.c b/Cockpit/cockpit.c index 164c33f99..c3502d6b6 100644 --- a/Cockpit/cockpit.c +++ b/Cockpit/cockpit.c @@ -32,7 +32,6 @@ #include #include -#include #include #include #include @@ -95,10 +94,13 @@ void fgCockpitUpdate( void ) /* $Log$ -/* Revision 1.7 1998/01/27 00:47:51 curt -/* Incorporated Paul Bleisch's new debug message -/* system and commandline/config file processing code. +/* Revision 1.8 1998/01/31 00:43:03 curt +/* Added MetroWorks patches from Carmen Volpe. /* + * Revision 1.7 1998/01/27 00:47:51 curt + * Incorporated Paul Bleisch's new debug message + * system and commandline/config file processing code. + * * Revision 1.6 1998/01/19 19:27:01 curt * Merged in make system changes from Bob Kuehne * This should simplify things tremendously. diff --git a/Cockpit/depend b/Cockpit/depend index 7872ed1fc..daa26b6c6 100644 --- a/Cockpit/depend +++ b/Cockpit/depend @@ -1,8 +1,2 @@ cockpit.o: cockpit.c -hud.o: hud.c hud.h ../Include/constants.h ../Aircraft/aircraft.h \ - ../Scenery/mesh.h ../Scenery/scenery.h ../Math/mat3.h ../Math/polar.h \ - ../Time/fg_timer.h ../Math/fg_random.h ../Weather/weather.h -test.o: test.c test.h ../Aircraft/aircraft.h ../Flight/flight.h \ - ../Controls/controls.h ../Include/constants.h ../Scenery/mesh.h \ - ../Scenery/scenery.h ../Math/mat3.h ../Math/polar.h \ - ../Time/fg_timer.h ../Math/fg_random.h ../Weather/weather.h +hud.o: hud.c hud.h diff --git a/Cockpit/hud.c b/Cockpit/hud.c index c602600f2..5425d21b2 100644 --- a/Cockpit/hud.c +++ b/Cockpit/hud.c @@ -34,7 +34,7 @@ #include #include -#include +/* #include */ #include #include #include @@ -59,18 +59,17 @@ static void textString(int x, int y, char *msg, void *font) } /* strokeString - Stroke font string */ - -static void strokeString(int x, int y, char *msg, void *font) -{ - glPushMatrix(); - glTranslatef(x, y, 0); - glScalef(.04, .04, .04); - while (*msg) { - glutStrokeCharacter(font, *msg); - msg++; - } - glPopMatrix(); -} +/* static void strokeString(int x, int y, char *msg, void *font) */ +/* { */ +/* glPushMatrix(); */ +/* glTranslatef(x, y, 0); */ +/* glScalef(.04, .04, .04); */ +/* while (*msg) { */ +/* glutStrokeCharacter(font, *msg); */ +/* msg++; */ +/* } */ +/* glPopMatrix(); */ +/* } */ /* @@ -226,7 +225,7 @@ static void drawladder( struct HUD_ladder ladder ) { double vmin, vmax; double roll_value, pitch_value; - double cos_roll, sin_roll; + /* double cos_roll, sin_roll; */ int marker_x, marker_y; int mid_scr; int scr_min, scr_max; @@ -336,7 +335,7 @@ static void drawladder( struct HUD_ladder ladder ) new_x_ini = ladder.x_pos+(x_ini-ladder.x_pos)*cos(roll_value)-\ (y_ini-ladder.y_pos)*sin(roll_value); new_y_ini = ladder.y_pos+(x_ini-ladder.x_pos)*sin(roll_value)+\ - (y_ini-ladder.y_pos)*cos(roll_value); + (y_ini-ladder.y_pos)*cos(roll_value); new_x_end = ladder.x_pos+(x_end-ladder.x_pos)*cos(roll_value)-\ (y_end-ladder.y_pos)*sin(roll_value); new_y_end = ladder.y_pos+(x_end-ladder.x_pos)*sin(roll_value)+\ @@ -386,11 +385,11 @@ static void drawhorizon( struct HUD_horizon horizon ) { int x_inc1, y_inc1; int x_inc2, y_inc2; - struct fgFLIGHT *f; + /* struct fgFLIGHT *f; */ double sin_bank, cos_bank; double bank_angle; - // f = ¤t_aircraft.flight; + /* f = ¤t_aircraft.flight; */ bank_angle = (*horizon.load_value)(); @@ -802,10 +801,13 @@ void fgUpdateHUD( Hptr hud ) /* $Log$ -/* Revision 1.8 1998/01/27 00:47:51 curt -/* Incorporated Paul Bleisch's new debug message -/* system and commandline/config file processing code. +/* Revision 1.9 1998/01/31 00:43:04 curt +/* Added MetroWorks patches from Carmen Volpe. /* + * Revision 1.8 1998/01/27 00:47:51 curt + * Incorporated Paul Bleisch's new debug message + * system and commandline/config file processing code. + * * Revision 1.7 1998/01/19 18:40:20 curt * Tons of little changes to clean up the code and to remove fatal errors * when building with the c++ compiler. diff --git a/LaRCsim/Makefile b/LaRCsim/Makefile index 7fd734cd7..0e6d92238 100644 --- a/LaRCsim/Makefile +++ b/LaRCsim/Makefile @@ -2,7 +2,8 @@ ARLIBRARY = libLaRCsim.a TARGETS = $(ARLIBRARY) LaRCsimFILES = atmos_62.c ls_accel.c ls_aux.c ls_geodesy.c ls_gravity.c \ - ls_step.c ls_model.c default_model_routines.c ls_init.c # ls_sync.c + ls_step.c ls_matrix.c ls_model.c default_model_routines.c ls_init.c \ + ls_trim.c NavionFILES = navion_aero.c navion_engine.c navion_gear.c navion_init.c InterfaceFILES = ls_interface.c CFILES = $(LaRCsimFILES) $(NavionFILES) $(InterfaceFILES) diff --git a/LaRCsim/depend b/LaRCsim/depend index f1d12c0b8..4e21e3128 100644 --- a/LaRCsim/depend +++ b/LaRCsim/depend @@ -12,9 +12,11 @@ ls_init.o: ls_init.c ls_types.h ls_sym.h ls_step.h ls_init.h \ ls_interface.o: ls_interface.c ls_types.h ls_constants.h ls_generic.h \ ls_sim_control.h ls_cockpit.h ls_interface.h ls_step.h ls_accel.h \ ls_aux.h ls_model.h ls_init.h +ls_matrix.o: ls_matrix.c ls_matrix.h ls_model.o: ls_model.c ls_types.h ls_model.h default_model_routines.h ls_step.o: ls_step.c ls_types.h ls_constants.h ls_generic.h ls_accel.h \ ls_aux.h ls_model.h ls_step.h ls_geodesy.h ls_gravity.h +ls_trim.o: ls_trim.c ls_constants.h ls_types.h ls_sym.h ls_matrix.h mymain.o: mymain.c ls_types.h ls_cockpit.h ls_generic.h navion_aero.o: navion_aero.c ls_types.h ls_generic.h ls_cockpit.h navion_engine.o: navion_engine.c ls_types.h ls_constants.h \ diff --git a/Main/GLUTmain.c b/Main/GLUTmain.c index 68a902d09..ead4b3555 100644 --- a/Main/GLUTmain.c +++ b/Main/GLUTmain.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include #include