From: curt Date: Wed, 30 Jul 1997 16:12:38 +0000 (+0000) Subject: Moved fg_random routines from Util/ to Math/ X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1406e5ba8e6c4341dedc9b1855cd02c25f582ba2;p=flightgear.git Moved fg_random routines from Util/ to Math/ --- diff --git a/Main/GLmain.c b/Main/GLmain.c index eff6ef572..9da31b1ea 100644 --- a/Main/GLmain.c +++ b/Main/GLmain.c @@ -44,10 +44,10 @@ #include "../Aircraft/aircraft.h" #include "../Scenery/mesh.h" #include "../Scenery/scenery.h" +#include "../Math/fg_random.h" #include "../Math/mat3.h" #include "../Math/polar.h" #include "../Timer/fg_timer.h" -#include "../Utils/fg_random.h" #include "../Weather/weather.h" @@ -621,9 +621,12 @@ int printf (const char *format, ...) { /* $Log$ -/* Revision 1.39 1997/07/21 14:45:01 curt -/* Minor tweaks. +/* Revision 1.40 1997/07/30 16:12:42 curt +/* Moved fg_random routines from Util/ to Math/ /* + * Revision 1.39 1997/07/21 14:45:01 curt + * Minor tweaks. + * * Revision 1.38 1997/07/19 23:04:47 curt * Added an initial weather section. * diff --git a/Main/Makefile b/Main/Makefile index a0bb6e907..4d072da7b 100644 --- a/Main/Makefile +++ b/Main/Makefile @@ -32,7 +32,7 @@ AFILES = ../Aircraft/libAircraft.a ../Controls/libControls.a \ ../Flight/libFlight.a ../Flight/LaRCsim/libLaRCsim.a \ ../Flight/Slew/libSlew.a ../Math/libMath.a \ ../Scenery/libScenery.a \ - ../Timer/libTimer.a ../Utils/libUtils.a ../Weather/libWeather.a + ../Timer/libTimer.a ../Weather/libWeather.a include ../make.inc @@ -76,6 +76,9 @@ mesh2GL.o: #--------------------------------------------------------------------------- # $Log$ +# Revision 1.26 1997/07/30 16:12:42 curt +# Moved fg_random routines from Util/ to Math/ +# # Revision 1.25 1997/07/20 02:19:11 curt # First stab at a system to generate os2 makefiles automatically. # diff --git a/Main/depend b/Main/depend index 4f8139b34..a7b028cfd 100644 --- a/Main/depend +++ b/Main/depend @@ -17,9 +17,9 @@ GLmain.o: GLmain.c ../constants.h ../Aircraft/aircraft.h \ ../Aircraft/../Flight/LaRCsim/../flight.h \ ../Aircraft/../Controls/controls.h \ ../Aircraft/../Controls/../limits.h ../Scenery/mesh.h \ - ../Scenery/scenery.h ../Math/mat3.h ../Math/polar.h \ - ../Math/../types.h ../Timer/fg_timer.h ../Utils/fg_random.h \ + ../Scenery/scenery.h ../Math/fg_random.h ../Math/mat3.h \ + ../Math/polar.h ../Math/../types.h ../Timer/fg_timer.h \ ../Weather/weather.h mesh2GL.o: mesh2GL.c ../constants.h ../Scenery/mesh.h \ - ../Scenery/scenery.h ../Math/mat3.h ../Math/polar.h \ - ../Math/../types.h ../Utils/fg_random.h + ../Scenery/scenery.h ../Math/fg_random.h ../Math/mat3.h \ + ../Math/polar.h ../Math/../types.h diff --git a/Main/mesh2GL.c b/Main/mesh2GL.c index a5d297e33..36f3bf144 100644 --- a/Main/mesh2GL.c +++ b/Main/mesh2GL.c @@ -33,9 +33,9 @@ #include "../constants.h" #include "../Scenery/mesh.h" #include "../Scenery/scenery.h" +#include "../Math/fg_random.h" #include "../Math/mat3.h" #include "../Math/polar.h" -#include "../Utils/fg_random.h" /* The following routine is a real hack used for testing puposes only @@ -177,14 +177,6 @@ GLint mesh2GL(struct mesh *m) { /* this will go, it's only here for testing/debugging */ - /* - for ( i = m->originy; i < m->originy + (m->row_step * iend); i += 120 ) { - for ( j = m->originx; j < m->originx + (m->col_step * jend); j += 120) { - mesh_make_test_object(j, i); - } - } - */ - for ( i = 0; i < 200; i++ ) { randx = fg_random() * 3600.0; randy = fg_random() * 3600.0; @@ -200,9 +192,12 @@ GLint mesh2GL(struct mesh *m) { /* $Log$ -/* Revision 1.39 1997/07/21 21:20:48 curt -/* Twiddled with random object placement. +/* Revision 1.40 1997/07/30 16:12:43 curt +/* Moved fg_random routines from Util/ to Math/ /* + * Revision 1.39 1997/07/21 21:20:48 curt + * Twiddled with random object placement. + * * Revision 1.38 1997/07/21 14:45:02 curt * Minor tweaks. * diff --git a/Simulator/Makefile b/Simulator/Makefile index 676c7c1b4..0ab101743 100644 --- a/Simulator/Makefile +++ b/Simulator/Makefile @@ -28,7 +28,7 @@ include make.inc SUBSUBDIRS = Flight/LaRCsim Flight/Slew -SUBDIRS = Aircraft Controls Flight Math Scenery Timer Utils Weather +SUBDIRS = Aircraft Controls Flight Math Scenery Timer Weather MAIN = OpenGL @@ -71,6 +71,9 @@ zip: clean #--------------------------------------------------------------------------- # $Log$ +# Revision 1.21 1997/07/30 16:12:38 curt +# Moved fg_random routines from Util/ to Math/ +# # Revision 1.20 1997/07/20 02:19:09 curt # First stab at a system to generate os2 makefiles automatically. # diff --git a/Weather/depend b/Weather/depend index de8ba3831..d94f0760f 100644 --- a/Weather/depend +++ b/Weather/depend @@ -3,4 +3,4 @@ weather.o: weather.c weather.h ../Aircraft/aircraft.h \ ../Aircraft/../Flight/LaRCsim/ls_interface.h \ ../Aircraft/../Flight/LaRCsim/../flight.h \ ../Aircraft/../Controls/controls.h \ - ../Aircraft/../Controls/../limits.h ../Utils/fg_random.h + ../Aircraft/../Controls/../limits.h ../Math/fg_random.h diff --git a/Weather/weather.c b/Weather/weather.c index 3d6f19e67..f805e9100 100644 --- a/Weather/weather.c +++ b/Weather/weather.c @@ -26,7 +26,7 @@ #include "weather.h" #include "../Aircraft/aircraft.h" -#include "../Utils/fg_random.h" +#include "../Math/fg_random.h" /* Initialize the weather modeling subsystem */ @@ -49,7 +49,10 @@ void fgWeatherUpdate(double lon, double lat, double alt) { } /* $Log$ -/* Revision 1.1 1997/07/19 23:03:57 curt -/* Initial revision. +/* Revision 1.2 1997/07/30 16:12:44 curt +/* Moved fg_random routines from Util/ to Math/ /* + * Revision 1.1 1997/07/19 23:03:57 curt + * Initial revision. + * */