Commit Graph

  • a460c753e7 Work around a limitation of gc_calc_course_dist(). When the start and end points are too close together, this routine can return a course of "nan" but the distance is valid. Someday someone who understands the math should rewrite the gc_calc_course_dist() routine so it is more robust, but for now it's easiest to simply check for a nan result and code around the limitation. curt 2004-03-03 21:37:41 +00:00
  • 9f59e956fa #define isnan _isnan for MSVC and Mingwin. curt 2004-03-03 21:35:38 +00:00
  • bd02eb8e6b Remove a typo ehofman 2004-03-03 20:06:28 +00:00
  • a266790a25 Put Curt's cloud movement fix back in ehofman 2004-03-03 20:05:18 +00:00
  • 3462e3b6c1 MSVC .NET 2003 fix. ehofman 2004-03-03 19:59:44 +00:00
  • ed29944b91 Add const back in the function ehofman 2004-03-03 19:54:24 +00:00
  • a0251b3256 Some small fixes ehofman 2004-03-03 19:48:28 +00:00
  • 557474095f A real MSVC fix this time ehofman 2004-03-02 15:18:18 +00:00
  • b7dd267807 Revert the last change, MSVC still doesn't like it. ehofman 2004-03-02 14:58:58 +00:00
  • 58a0b1d2c3 MSVC fixes ehofman 2004-03-02 14:49:01 +00:00
  • d8acc3a8f2 Use a round-robin scheme rather than returning a random textured state. ehofman 2004-03-02 13:28:12 +00:00
  • 5f21c75e02 Make it possible to define multiple texture for a material (multiple <texture> entries in the materials.xml file). The code can return a random texture, or a pre defined texture upon request (default is random) ehofman 2004-03-02 10:51:13 +00:00
  • 79d72b6292 Add front() methods SGQueue, SGLockedQueue, and SGBlockingQueue so that the can be used more interchangably with a regular STL queue. curt 2004-02-28 18:51:20 +00:00
  • aa67c738a1 Load submodels before animations, so that we can animate submodels. david 2004-02-27 03:30:01 +00:00
  • 117628bf7e Melchior FRANZ: ehofman 2004-02-26 09:46:36 +00:00
  • 70dbbf52f0 Melchior FRANZ: Here are some updates for the metar class: ehofman 2004-02-23 20:07:20 +00:00
  • 99bf2c6f9e Comment out an improperly written constructor. curt 2004-02-23 01:34:31 +00:00
  • 3fdeea7f65 An ugly hack to get MipsPro 7.4.1 working on IRIX 6 .5.20 (Yuck) ehofman 2004-02-20 16:07:51 +00:00
  • ea9d110036 Fix from Richard Harke for 64 bit systems. The reftag was left uninitialized by naNum(). If it happened to be constructing it on the stack in a location previously occupied by a real reference, it would generate a corrupt naRef. andy 2004-02-20 15:10:49 +00:00
  • 16ad232e0d Changes to tke sky dome coloring ehofman 2004-02-18 14:33:16 +00:00
  • 5b8e5fce20 Remove an extra sgSetVec call ehofman 2004-02-17 14:40:05 +00:00
  • 0633d703d0 Be a little quieter at the default debug level. david 2004-02-07 21:36:20 +00:00
  • ec6ce9fcd8 Move the new metar class from FlightGear to SimGear ehofman 2004-02-02 10:12:31 +00:00
  • c9e53d5a30 Yank the MSVC special handling. It turns out it was becuase "strlen" has special voodoo in the parser. That's much more cleanly handled by renaming the function than by #ifdef'ing. andy 2004-02-01 17:47:08 +00:00
  • 828e10773c Fix a slight ambiguity in variable names. curt 2004-01-31 19:50:35 +00:00
  • 34b5c1a1b9 Activate the driver fog workaround again. It doesn't seem to be solved yet. ehofman 2004-01-29 18:25:55 +00:00
  • b2a7975493 Frederic BOUVIER: curt 2004-01-27 15:55:47 +00:00
  • f0af686d17 Make sure all libraries are used to test for certain functions ehofman 2004-01-27 09:41:33 +00:00
  • eda1121054 Fix a mistake ehofman 2004-01-26 19:59:36 +00:00
  • d97eb240d9 Clean up the Pre-, and PostDraw functions a bit. Especially the glPushAttrib has had some attention. The NVidia hack is commented out for now. ehofman 2004-01-24 12:08:12 +00:00
  • 8c296d96c7 Fix an initialization problem ehofman 2004-01-19 13:37:26 +00:00
  • 65a49bb6e4 Oops, I originally had ramped the vasi/papi color transition the wrong way. So as you passed through the target glide slope from low to high it would be colored: red -> white -> small range of transition to red -> white. Now it goes the right way so you get: red -> smooth transition to -> white. You can tell you are getting high if you see the bottom vasi start to turn pink ... etc. etc. hopefully just like in real life. curt 2004-01-16 17:37:05 +00:00
  • cfedc90fdd Try to prevent a devide by zero situation ehofman 2004-01-15 14:23:06 +00:00
  • 5665a62938 Don't do any calculations when thay are not needed ehofman 2004-01-15 14:22:03 +00:00
  • 36521869ae Make sure MispPro compilers < 7.4 still work ehofman 2004-01-15 14:21:31 +00:00
  • 84fd7a49ad The emissive values just don't seem like the right thing to do. You suddenly see the dark side of the moon quite clearly, which usually isn't the case. curt 2004-01-14 18:02:58 +00:00
  • 24b5f05522 Make the vasi lights slightly larger/brighter. curt 2004-01-09 16:49:13 +00:00
  • 17415424bf Use the same coloring scheme for the moon and the sun, add a bit of light reflection to the moon ehofman 2004-01-09 10:19:00 +00:00
  • 920c0fdb62 Updates to the alpha-test animation class ehofman 2004-01-08 10:38:29 +00:00
  • 40414f2823 Updates to the alpha-test animation class ehofman 2004-01-08 10:25:23 +00:00
  • 3d43bc0480 Frederic Bouvier: ehofman 2004-01-07 09:07:57 +00:00
  • 7bee5f1ab6 Smarter vasi coloring. curt 2003-12-30 07:04:05 +00:00
  • a43f5c8d21 Track some additional data required for computing vasi/papi colors. curt 2003-12-30 05:53:50 +00:00
  • 8361069344 Go with an all white texture for vasi/papi lights. We will vary the background color externally to change from white to red. curt 2003-12-30 05:53:03 +00:00
  • c9661e2732 Add a number of Metar related constants ehofman 2003-12-27 13:41:02 +00:00
  • bd13cf84a1 Resolve some dependency problems ehofman 2003-12-27 09:31:02 +00:00
  • e54cfc002b Updates to support sgi's MIPSpro compiler version 7.4 and newer. This also fixes a number of C++ issues where FlightGear didn't follow the standard. ehofman 2003-12-26 13:55:09 +00:00
  • 5aac63d9f5 Parse/GC interaction fixed. Remove the OP_NEWARGS "optimization" (it wasn't). andy 2003-12-22 19:27:51 +00:00
  • 6a19bbee7d Melchior FRANZ: There are constructors for sg_io_exception that don't initialize the location. In this case getFormattedMessage does still output an extra line with " at" followed by ... nothing. Looks silly. ehofman 2003-12-19 17:44:30 +00:00
  • 2e5c4b4515 Rewrite sg_geodesy. The new version is more accurate to the WGS84 standard and includes a sgCartToGeod() function which is 100% symmetric (down to the precision of a double) with sgGeodToCart(). andy 2003-12-19 02:40:33 +00:00
  • 79d1aaf7f5 Melchior FRANZ: ehofman 2003-12-14 14:45:29 +00:00
  • a659969bcf Make sure both client and server situations are hendled properly ehofman 2003-12-14 10:07:51 +00:00
  • 53bdf9dac4 Revert to the previous version ehofman 2003-12-11 15:26:23 +00:00
  • ad394fb090 fgrun fixes ehofman 2003-12-11 13:17:45 +00:00
  • 92a123a47d Extra i++ led to a "double skip" when parsing a \r\n pair. So a DOS file would look like it was all on one line, and a comment would skip to the end of the file. andy 2003-12-08 16:55:50 +00:00
  • 755173bd2e Bug fixes. The priority queue wasn't handling boundary conditions at the edge of the table properly. The new code is half the size -- it *has* to be correct, right? andy 2003-12-07 19:53:34 +00:00
  • 27477402c9 Property interpolator subsystem. A utility, primarily for Nasal scripts andy 2003-12-05 01:49:44 +00:00
  • dc9c41e119 Added setsize() and subvec() library functions andy 2003-12-05 01:49:02 +00:00
  • 3c7f9e7ba4 A first attempt on detecting endianness and number of bits ehofman 2003-12-01 18:57:32 +00:00
  • fbf018598e Rename IRIX to irix_string in simgear/compatibility and assign "simgear/compatibility/irix_string" to STL_STRING for IRIX ehofman 2003-12-01 18:56:53 +00:00
  • 83b4dcb55c Add Nasal Vs. 1.5 ehofman 2003-12-01 14:33:45 +00:00
  • 5812571df4 Attempt to fix a bug in SGSocket::read() affecting TCP style sockets. curt 2003-11-27 13:24:26 +00:00
  • b1c688abe8 Revert an IRIX/O2 only setting again ehofman 2003-11-27 10:23:13 +00:00
  • f4b30bbdd7 Portability fix ehofman 2003-11-27 10:22:29 +00:00
  • e4008862ce Make sure autogenerated files don't show up ehofman 2003-11-26 14:42:05 +00:00
  • 2b7079eed2 Portability fixes ehofman 2003-11-26 14:39:46 +00:00
  • 983685fde3 rename libnasal.a to libsgnasal.a to match the existing SimGear library naming convention. curt 2003-11-25 22:49:02 +00:00
  • eef1cc716d MSVC > 6.0 fix ehofman 2003-11-25 21:45:56 +00:00
  • 34e2a9dc37 Nasal and event manager updates from Andy Ross. curt 2003-11-25 21:26:01 +00:00
  • 1786692406 Version 1.3 of Andy Ross's "NASAL" embedded scripting language. curt 2003-11-25 20:16:28 +00:00
  • c37afce303 Minor changes to logging messages (to STDOUT). david 2003-11-24 17:41:43 +00:00
  • 1ea99cdd4d MacOS X fixes ehofman 2003-11-23 10:04:45 +00:00
  • 4c1d22b8a6 FIx a typo ehofman 2003-11-21 21:56:57 +00:00
  • 5f22c93db7 Frederic Bouvier wrote: > When a c172 is on one machine, I only got segfault on an animation > not found. This animation is named ControlsGroup and I guess > that one object name referenced in this null animation no > longer exist in the .ac model. I say that because the > preceding one is analogous and works. > > So I would say the multiplayer works, except when there is a c172. ehofman 2003-11-19 15:16:21 +00:00
  • 13a42f1d9e Change istringstream back to a typedef so there is no need to redefine every class memeber. ehofman 2003-11-09 08:56:09 +00:00
  • c4d5d85c3e Save on a number of CPU costly strcmp calls when using the blend function ehofman 2003-11-04 13:25:23 +00:00
  • d915ccec6e Updates for the official 0.3.4 version. RELEASE_0_3_4 curt 2003-10-22 19:21:24 +00:00
  • ea1b70191c Shoot, I was trying to hunt down a bug that wasn't even caused by the sstream implementation! Back out some of the previous patches ehofman 2003-10-20 19:53:35 +00:00
  • 19815c3bce And don't forget to free up the used memory. ehofman 2003-10-20 19:38:27 +00:00
  • 66fb6b5a1c Make it easy on myself (and make it work as a bonus) ehofman 2003-10-20 19:32:50 +00:00
  • 94ac87f4f5 Last fixes ehofman 2003-10-20 12:14:10 +00:00
  • 79d5bf66a7 Safety updates ehofman 2003-10-20 09:41:26 +00:00
  • a4535c92c3 fixes and updates for fgrun ehofman 2003-10-20 09:06:13 +00:00
  • cecdb15692 Fix a problem which was introduced in the previous patch ehofman 2003-10-16 14:53:14 +00:00
  • 3c08eae85b Fix a problem where older IRIX compilers needed a typecast for certain opperations ehofman 2003-10-16 12:51:47 +00:00
  • db928ea1ae Various updates for the upcoming 0.3.4 release. RELEASE_0_3_4_pre1 curt 2003-10-15 20:15:29 +00:00
  • bb002356b4 Fix a stragling left over reference to metakit. curt 2003-10-15 20:01:41 +00:00
  • 431e78cf09 Add the ability to set three levels of detail for static scenery using the property tree ehofman 2003-09-28 08:38:48 +00:00
  • 81b9ec50b0 Fix a dependency problem ehofman 2003-09-25 08:22:40 +00:00
  • e0ba803ca9 A couple changes to allow separate handling of VASI/PAPI lights which generally are turned on all the time. curt 2003-09-24 19:56:51 +00:00
  • 7ae57483f3 Fix a problem where the compiler would mix up two function declarations because the one wich has SGSubsystem in it's options list expected a const SGSubsystem, but it was called with a plain SGSubsystem ehofman 2003-09-24 19:06:59 +00:00
  • d22640ef4e Move FGEventMgr and FGSubsystemMgr over to SimGear, add SGEventMgr to FlightGear's globals structre and some small code cleanups ehofman 2003-09-24 17:19:22 +00:00
  • f3eeeb760f Various tweaks to handling taxiway lighting. curt 2003-09-23 23:06:50 +00:00
  • 695e112039 Fix a problem where the upper cloud layers are drawn with the sun punch through value ehofman 2003-09-23 08:42:20 +00:00
  • 133e67adb8 Fix a problem where the cloud layers suddenly change color when looking towards the sun ehofman 2003-09-22 12:32:03 +00:00
  • 6079cd3df8 Initialize some variables before using them ehofman 2003-09-17 17:59:28 +00:00
  • 6f4fd2dc6e Frederic Bouvier: This patch is there to correct a problem that prevent to load static objects when specifying a relative fg-root or a different, relative, fg-scenery. It appears that there is a mix between fg-root, fg-scenery and PLIB's model-dir. It has been reported on the list that users are not able to see the buildings, especially those running the win32 builds because they run 'runfgfs.bat' that set FG_ROOT=./DATA. ehofman 2003-09-13 11:45:47 +00:00
  • b30eb9c00c Add support for win32-pthreads in MSVC.NET ehofman 2003-09-13 11:33:49 +00:00
  • 1236d8be19 Fix a problem for systems with older headers ehofman 2003-09-12 21:24:52 +00:00
  • cb35ecb4b0 Use default OpenGL material colors ehofman 2003-09-09 14:33:29 +00:00