]> git.mxchange.org Git - flightgear.git/log
flightgear.git
20 years agoAdd the aircraft model, model manager, view manager, and scenery
david [Fri, 27 Feb 2004 15:16:23 +0000 (15:16 +0000)]
Add the aircraft model, model manager, view manager, and scenery
manager to the standard subsystem collection manager, rather than
using extra code to initialize and update them.

20 years agoDavid Culp:
ehofman [Fri, 27 Feb 2004 10:20:17 +0000 (10:20 +0000)]
David Culp:

Here's a new batch of AI code which includes a working radar instrument.

I put the radar calculations into the existing AIAircraft class.  It was
easier that way, and it can always be migrated out later if we have to.
Every tenth sim cycle the AIManager makes a copy of the current user state
information.  When the AIAircraft updates it uses this information to
calculate the radar numbers.  It calculates:

1) bearing from user to target
2) range to target in nautical miles
3) "horizontal offset" to target.  This is the angle from the nose to the
   target, in degrees, from -180 to 180.  This will be useful later for a HUD.
4) elevation, in degrees (vertical angle from user's position to target
   position)
5) vertical offset, in degrees (this is elevation corrected for user's pitch)
6) rdot (range rate in knots, note:  not working yet, so I commented it out)

and three items used by the radar instrument to place the "blip"

7) y_shift, in nautical miles
8) x_shift, in nautical miles
9) rotation, in degrees

The radar instrument uses the above three items, and applies a scale factor to
the x-shift and y-shift in order to match the instrument's scale.  Changing
the display scale can be done entirely in the XML code for the instrument.
Right now it's set up only to display a 40 mile scale.

The radar is an AWACS view, which is not very realistic, but it is useful and
demonstrates the technology.  With just a little more work I can get a HUD
marker.  All I need to do there is make a bank angle adjustment to the
current values.

20 years agoLoad submodels before animations, so that we can animate submodels.
david [Fri, 27 Feb 2004 03:31:12 +0000 (03:31 +0000)]
Load submodels before animations, so that we can animate submodels.

Allow submodels to be named when they are loaded.

20 years agoFor weather fetching from the noaa.gov site: If the closest station hasn't
curt [Thu, 26 Feb 2004 18:21:11 +0000 (18:21 +0000)]
For weather fetching from the noaa.gov site:  If the closest station hasn't
changed, wait 15 minutes before grabbing it's weather data again.

20 years agoAdd an option to define the proxy settings (used by metar data fetching only at this...
ehofman [Thu, 26 Feb 2004 12:57:38 +0000 (12:57 +0000)]
Add an option to define the proxy settings (used by metar data fetching only at this time). Usage: --proxy=user:pwd@host:port

20 years agoAdd support for a proxy server when retreiving metar data.
ehofman [Thu, 26 Feb 2004 10:23:48 +0000 (10:23 +0000)]
Add support for a proxy server when retreiving metar data.

20 years agoAdd threading to metar data fetching where available.
ehofman [Wed, 25 Feb 2004 15:31:01 +0000 (15:31 +0000)]
Add threading to metar data fetching where available.

20 years agoAvoid a possible segfault crash if a nonexistant airport is specified.
curt [Wed, 25 Feb 2004 02:16:36 +0000 (02:16 +0000)]
Avoid a possible segfault crash if a nonexistant airport is specified.

20 years agoDavid Culp:
ehofman [Mon, 23 Feb 2004 20:55:07 +0000 (20:55 +0000)]
David Culp:

I went through the AI code to put the "bank" node back into the config file,
so the models can fly circles.  While I was in there I made some other
changes.

*)  Moved the initialization of roll, tgt-roll, pitch ... etc, from init()
into the constructor, so it wouldn't over-write the config settings.

*)  Changed the altitude getter to remove the meters-to-feet conversion.  The
altitude is kept internally in feet.  Only the scenery code needs meters.

*)  Added "bank" item for config file (for type=aircraft).  Left bank is
negative.

*)  Added "rudder" item for config file (for type=ship).  Left rudder is
negative.  Internally this is stored in the "roll" variable, but the ship
model doesn't roll.  It uses the "roll" variable for turning though.

The following puts a tanker at 3000 feet, 6 nm northwest of KSFO.  On takeoff,
the tanker is visible over the hanger building at one-o'clock.

   <entry>
    <type>aircraft</type>
    <class>jet_transport</class>
    <path>Aircraft/737/Models/boeing733.xml</path>
    <speed-KTAS type="double">320.0</speed-KTAS>
    <altitude-ft type="double">3000.0</altitude-ft>
    <longitude type="double">-122.455</longitude>
    <latitude type="double">37.69667</latitude>
    <heading type="double">200.0</heading>
    <bank type="double">-15.0</bank>
   </entry>

20 years agoA first stab at limiting the noaa.gov query to only valid stations. There
curt [Mon, 23 Feb 2004 18:25:29 +0000 (18:25 +0000)]
A first stab at limiting the noaa.gov query to only valid stations.  There
are many recognized limitations and inefficiencies with this entire approach,
however, it's a quick and dirty way to get something working, where before
we didn't.

20 years agoAdd network libraries for Solaris
ehofman [Mon, 23 Feb 2004 14:29:42 +0000 (14:29 +0000)]
Add network libraries for Solaris

20 years agoAdd the network libraries for Solaris
ehofman [Mon, 23 Feb 2004 14:22:53 +0000 (14:22 +0000)]
Add the network libraries for Solaris

20 years agoFix a type mismatch error introduced with the latest changes to
curt [Mon, 23 Feb 2004 11:42:49 +0000 (11:42 +0000)]
Fix a type mismatch error introduced with the latest changes to
src/Airports/simple.[ch]xx

20 years agoonly airports with four-letter codes can have metar stations
ehofman [Mon, 23 Feb 2004 09:49:02 +0000 (09:49 +0000)]
only airports with four-letter codes can have metar stations

20 years agoFrederic Bouvier:
ehofman [Mon, 23 Feb 2004 09:48:10 +0000 (09:48 +0000)]
Frederic Bouvier:
The last change from Curt to Airports/simple.[ch]xx made
GUI/AirportList.cxx not compilable because of the loss of
a '*' in getAirport.

Also : fabs is not defined under MSVC unless <math.h> is
included.

20 years agoMove fgSetupWind() from options.cxx to util.cxx
ehofman [Mon, 23 Feb 2004 09:37:28 +0000 (09:37 +0000)]
Move fgSetupWind() from options.cxx to util.cxx

20 years agoUse floor() insstead of floorf()
ehofman [Mon, 23 Feb 2004 09:03:41 +0000 (09:03 +0000)]
Use floor() insstead of floorf()

20 years agoOops, call *re*init() so that the weather conditions (not just clouds)
curt [Mon, 23 Feb 2004 02:22:49 +0000 (02:22 +0000)]
Oops, call *re*init() so that the weather conditions (not just clouds)
are actually updated.

20 years agoEnhance the FGMetarEnvironmentCtrl class to also do on the fly weather
curt [Mon, 23 Feb 2004 01:39:12 +0000 (01:39 +0000)]
Enhance the FGMetarEnvironmentCtrl class to also do on the fly weather
updates based on the "closest" airport with metar data available.  Note that
the web based query is in the main loop and causes brief sim pauses.  Update
rate (once per minute) needs to be tweaked with, but is a good value for
testing.

20 years agoVarious mods to allow querying for nearest airport (with optional ability to
curt [Mon, 23 Feb 2004 01:37:26 +0000 (01:37 +0000)]
Various mods to allow querying for nearest airport (with optional ability to
only query those stations with metar weather available.)  Metar availability
is determined on the fly for now.

20 years agoUpdates so clouds, temp, and dewpoint can be set correctly using weather
curt [Sun, 22 Feb 2004 14:21:37 +0000 (14:21 +0000)]
Updates so clouds, temp, and dewpoint can be set correctly using weather
station base elevation.

20 years agoFor metar, correctly update visibility and pressure/altimeter. Temp and
curt [Sun, 22 Feb 2004 02:06:05 +0000 (02:06 +0000)]
For metar, correctly update visibility and pressure/altimeter.  Temp and
clouds need to be implimented (and adjusted for station elevation.)

20 years agoignore resets for now because every z/Z key press would trigger a call to NOAA. We...
ehofman [Sat, 21 Feb 2004 15:20:41 +0000 (15:20 +0000)]
ignore resets for now because every z/Z key press would trigger a call to NOAA. We need a better approach.

20 years agoCatch exceptions when no metar data is available (e.g. KUFO)
ehofman [Sat, 21 Feb 2004 15:00:49 +0000 (15:00 +0000)]
Catch exceptions when no metar data is available (e.g. KUFO)

20 years agoEncapsulate the interpolstion version of FGEnvironment and fix some bugs
ehofman [Sat, 21 Feb 2004 14:04:40 +0000 (14:04 +0000)]
Encapsulate the interpolstion version of FGEnvironment and fix some bugs

20 years agoAdd support for retreiving metar data from the internet
ehofman [Sat, 21 Feb 2004 12:56:16 +0000 (12:56 +0000)]
Add support for retreiving metar data from the internet

20 years agoChange fg_props.[ch]xx into a proper subsystem, under the control of
david [Fri, 20 Feb 2004 17:35:33 +0000 (17:35 +0000)]
Change fg_props.[ch]xx into a proper subsystem, under the control of
the subsystem manager.

Add properties for the individual parts of the time and date.

20 years agoRemove truncf() all together.
ehofman [Fri, 20 Feb 2004 07:54:26 +0000 (07:54 +0000)]
Remove truncf() all together.

20 years agoAdded a <solve-weight> subtag of the approach/cruise parameters that can
andy [Wed, 18 Feb 2004 15:36:35 +0000 (15:36 +0000)]
Added a <solve-weight> subtag of the approach/cruise parameters that can
be used to set the variable weights to specific values for the solution.

20 years agoChanges to tke sky dome coloring
ehofman [Wed, 18 Feb 2004 14:33:50 +0000 (14:33 +0000)]
Changes to tke sky dome coloring

20 years agoAllow a "fuel" attribute in the approach and cruise tags to have
andy [Tue, 17 Feb 2004 23:24:36 +0000 (23:24 +0000)]
Allow a "fuel" attribute in the approach and cruise tags to have
values other than the defaults (20% and 50%, respectively)

20 years agoAdd elevator trim tab position logging.
curt [Tue, 17 Feb 2004 23:03:31 +0000 (23:03 +0000)]
Add elevator trim tab position logging.

20 years agoAdd trim tab deflection to surface positions passed in net_fdm.
curt [Tue, 17 Feb 2004 22:46:28 +0000 (22:46 +0000)]
Add trim tab deflection to surface positions passed in net_fdm.

20 years agoUpdate the FDM section to expose the engine/thruster related internal properties.
ehofman [Tue, 17 Feb 2004 10:55:20 +0000 (10:55 +0000)]
Update the FDM section to expose the engine/thruster related internal properties.

20 years agoAdjust the turbine names for N1, N2 and EGT_degC to match those already specified...
ehofman [Tue, 17 Feb 2004 09:07:27 +0000 (09:07 +0000)]
Adjust the turbine names for N1, N2 and EGT_degC to match those already specified by YASim (n1, n2 and egt_degf).

20 years agoAdd a bit more sanity checking on destination directory.
curt [Mon, 16 Feb 2004 20:50:42 +0000 (20:50 +0000)]
Add a bit more sanity checking on destination directory.

20 years agoFix a crash if destination directory doesn't exist.
curt [Mon, 16 Feb 2004 19:14:46 +0000 (19:14 +0000)]
Fix a crash if destination directory doesn't exist.
Filter non-scenery items from install/remove list boxes.

20 years agoUpdates from Fred to add a progress bar and fix visual glitches.
curt [Mon, 16 Feb 2004 14:08:20 +0000 (14:08 +0000)]
Updates from Fred to add a progress bar and fix visual glitches.
Tweaks by Curt to progress bar, plus sanity checks on included uninstall
box entries.

20 years agoRemove references to libtar.
curt [Mon, 16 Feb 2004 00:28:32 +0000 (00:28 +0000)]
Remove references to libtar.

20 years agoRework by Frederic for better windows support.
curt [Mon, 16 Feb 2004 00:27:03 +0000 (00:27 +0000)]
Rework by Frederic for better windows support.
Added MSVC7 workspace files.
Switch from libtar to untarka for it's better windows support.

20 years agoFix an #include typo.
curt [Sun, 15 Feb 2004 18:41:14 +0000 (18:41 +0000)]
Fix an #include typo.

20 years agoInitial revision.
curt [Sun, 15 Feb 2004 04:00:48 +0000 (04:00 +0000)]
Initial revision.

20 years agoAdd the latest version of JSBSim including support for a Visual Reference Point
ehofman [Sat, 14 Feb 2004 10:19:56 +0000 (10:19 +0000)]
Add the latest version of JSBSim including support for a Visual Reference Point

20 years agoYank the sqrt() terms from the twist calculations. They were causing
andy [Fri, 13 Feb 2004 18:12:08 +0000 (18:12 +0000)]
Yank the sqrt() terms from the twist calculations.  They were causing
solution failures for reasons I have still to investigate.

20 years agoRevert to the previous version because it looks it isn't the friction force after...
ehofman [Fri, 13 Feb 2004 15:20:13 +0000 (15:20 +0000)]
Revert to the previous version because it looks it isn't the friction force after all.

20 years agoMake sure the friction forces are positive, otherwise they will push the aircraft...
ehofman [Fri, 13 Feb 2004 12:54:38 +0000 (12:54 +0000)]
Make sure the friction forces are positive, otherwise they will push the aircraft rather than holding it into place. The ground reaction code still needs some attention.

20 years agoInitialize autopilot output to start at current manual control position
curt [Thu, 12 Feb 2004 22:35:29 +0000 (22:35 +0000)]
Initialize autopilot output to start at current manual control position
to [hopefully] make autopilot activation less "dramatic."

20 years agoSimple hack to allow selectively disabling the hardware flight controls.
curt [Thu, 12 Feb 2004 20:56:24 +0000 (20:56 +0000)]
Simple hack to allow selectively disabling the hardware flight controls.

20 years agoClean up headers and lower verbosity.
curt [Thu, 12 Feb 2004 20:28:19 +0000 (20:28 +0000)]
Clean up headers and lower verbosity.

20 years agoAdd some example remote controll scripts
ehofman [Tue, 10 Feb 2004 15:35:48 +0000 (15:35 +0000)]
Add some example remote controll scripts

20 years agoA bit more Makefile massaging.
curt [Tue, 10 Feb 2004 15:22:29 +0000 (15:22 +0000)]
A bit more Makefile massaging.

20 years agoLeave a usable state again.
ehofman [Tue, 10 Feb 2004 15:07:50 +0000 (15:07 +0000)]
Leave a usable state again.

20 years agoAdd some example remote controll scripts and make sure at least the perl directory...
ehofman [Tue, 10 Feb 2004 14:38:51 +0000 (14:38 +0000)]
Add some example remote controll scripts and make sure at least the perl directory is included in the tarball

20 years agoInitial revision of some helper functions for remote logging.
curt [Tue, 10 Feb 2004 04:42:13 +0000 (04:42 +0000)]
Initial revision of some helper functions for remote logging.

20 years agoPut the sqrt(frac) terms back into the wing twist.
andy [Mon, 9 Feb 2004 19:53:14 +0000 (19:53 +0000)]
Put the sqrt(frac) terms back into the wing twist.

20 years agoFix the left/right terms in the twist handling to be symmetrical.
andy [Mon, 9 Feb 2004 15:18:33 +0000 (15:18 +0000)]
Fix the left/right terms in the twist handling to be symmetrical.

20 years agoUpdated.
david [Sat, 7 Feb 2004 21:37:54 +0000 (21:37 +0000)]
Updated.

20 years agoBe a little quieter at the default debug level.
david [Sat, 7 Feb 2004 21:37:35 +0000 (21:37 +0000)]
Be a little quieter at the default debug level.

20 years agoInitial revisions.
curt [Sat, 7 Feb 2004 03:32:40 +0000 (03:32 +0000)]
Initial revisions.

20 years agoFix altitude/agl hold display.
curt [Thu, 5 Feb 2004 23:49:18 +0000 (23:49 +0000)]
Fix altitude/agl hold display.

20 years agoAdd my old ultra-simplistic PI controller. The fancy PID controller doesn't
curt [Thu, 5 Feb 2004 17:11:47 +0000 (17:11 +0000)]
Add my old ultra-simplistic PI controller.  The fancy PID controller doesn't
seem to be fully deterministic in P-only mode.  This old simple controller
does what I expect, so it's good for calulating stage #1's of multi-stage
controllers.

20 years agoInitialize the varables *before* reading in the configuration file
ehofman [Thu, 5 Feb 2004 13:47:48 +0000 (13:47 +0000)]
Initialize the varables *before* reading in the configuration file

20 years agoAdd vertical speed fpm conversion since the fdm provides this value in
curt [Wed, 4 Feb 2004 20:16:30 +0000 (20:16 +0000)]
Add vertical speed fpm conversion since the fdm provides this value in
fps.

20 years agoCleaned up some left over stuff. Working towards infrastructure to support
curt [Wed, 4 Feb 2004 17:10:32 +0000 (17:10 +0000)]
Cleaned up some left over stuff.  Working towards infrastructure to support
adding additional PID type algorithms to the code.
Add support for calculating heading bug error relative to magnetic heading
for slaved DG's.

20 years agoMake sure at least one Transform() is performed to set the model position *before...
daveluff [Wed, 4 Feb 2004 17:00:19 +0000 (17:00 +0000)]
Make sure at least one Transform() is performed to set the model position *before* first calling DoGroundElev() in order to avoid polluting the tilemgr with bogus tiles

20 years agoOops - no 3D model assigned to aircraft starting at airports with logical networks
daveluff [Wed, 4 Feb 2004 16:59:04 +0000 (16:59 +0000)]
Oops - no 3D model assigned to aircraft starting at airports with logical networks

20 years agoautopilot reinit() now reloads config file.
curt [Tue, 3 Feb 2004 20:17:57 +0000 (20:17 +0000)]
autopilot reinit() now reloads config file.

20 years agoRemove stray debugging output.
curt [Tue, 3 Feb 2004 19:48:41 +0000 (19:48 +0000)]
Remove stray debugging output.

20 years agoComment out some unused references and left over debugging output.
curt [Tue, 3 Feb 2004 19:34:23 +0000 (19:34 +0000)]
Comment out some unused references and left over debugging output.

20 years agoMove the new metar class from FlightGear to SimGear
ehofman [Mon, 2 Feb 2004 10:14:20 +0000 (10:14 +0000)]
Move the new metar class from FlightGear to SimGear

20 years agoInclude compiler.h and config.h first.
curt [Sun, 1 Feb 2004 16:50:13 +0000 (16:50 +0000)]
Include compiler.h and config.h first.

20 years agoCurt Olson:
curt [Sat, 31 Jan 2004 19:47:45 +0000 (19:47 +0000)]
Curt Olson:

Autopilot overhaul.

20 years agoThrust reversers. Very simple implementation.
andy [Fri, 30 Jan 2004 23:21:26 +0000 (23:21 +0000)]
Thrust reversers.  Very simple implementation.

20 years agoCheck for the precense of truncf rather than hard-wire it in
ehofman [Tue, 27 Jan 2004 09:31:27 +0000 (09:31 +0000)]
Check for the precense of truncf rather than hard-wire it in

20 years agoFix a type ...
curt [Mon, 26 Jan 2004 22:44:27 +0000 (22:44 +0000)]
Fix a type ...

20 years agoAlexander Nedotsukov:
ehofman [Mon, 26 Jan 2004 20:33:30 +0000 (20:33 +0000)]
Alexander Nedotsukov:

I just met a couple of warnings about depricated headers beeng used.
Please take a look at patch (against today cvs) attached wich
does strstream -> stringstream migration. I hope you found it usefull.

20 years agoMake it possible to show the DME in the HUD
ehofman [Mon, 26 Jan 2004 20:24:29 +0000 (20:24 +0000)]
Make it possible to show the DME in the HUD

20 years agoMSVC fixes
ehofman [Mon, 26 Jan 2004 20:06:03 +0000 (20:06 +0000)]
MSVC fixes

20 years agoForgot the gear ratio handling in stabilize() method, so the solver
andy [Sun, 25 Jan 2004 18:57:11 +0000 (18:57 +0000)]
Forgot the gear ratio handling in stabilize() method, so the solver
got wrong values.

20 years agoWire up a "gear-ratio" attribute for geared propeller aircraft
andy [Sat, 24 Jan 2004 23:09:41 +0000 (23:09 +0000)]
Wire up a "gear-ratio" attribute for geared propeller aircraft

20 years agoAdd Melchior FRANZ's metar class. It is not yet used anywhere (but in the resulting...
ehofman [Sat, 24 Jan 2004 10:38:39 +0000 (10:38 +0000)]
Add Melchior FRANZ's metar class. It is not yet used anywhere (but in the resulting metar executable), but it makes adding live weather quite easy.

20 years agoReduce the log level to info
ehofman [Sat, 24 Jan 2004 10:36:37 +0000 (10:36 +0000)]
Reduce the log level to info

20 years agoFixes to the kr_87 radio
ehofman [Sat, 24 Jan 2004 10:05:54 +0000 (10:05 +0000)]
Fixes to the kr_87 radio

20 years agoJohn Wojnaroski:
curt [Fri, 23 Jan 2004 21:02:09 +0000 (21:02 +0000)]
John Wojnaroski:

latest version is attached to reduce need to search property
tree each frame. I don't think this will break any Fg code and
opengc has been updated a while back and have had no complaints ;-) so it
should be a no impact change, hopefully.

20 years agoMelchior found another way to crash it
daveluff [Fri, 23 Jan 2004 18:38:02 +0000 (18:38 +0000)]
Melchior found another way to crash it

20 years agoRather define our own truncf implementation for BSD alikes
ehofman [Fri, 23 Jan 2004 18:27:55 +0000 (18:27 +0000)]
Rather define our own truncf implementation for BSD alikes

20 years agoBSD doesn't have truncf(), it does have floorf() however
ehofman [Fri, 23 Jan 2004 18:05:05 +0000 (18:05 +0000)]
BSD doesn't have truncf(), it does have floorf() however

20 years agoLots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic
daveluff [Fri, 23 Jan 2004 17:18:24 +0000 (17:18 +0000)]
Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic

20 years agoInitial revision of class for AI VFR GA traffic
daveluff [Fri, 23 Jan 2004 17:16:15 +0000 (17:16 +0000)]
Initial revision of class for AI VFR GA traffic

20 years agoDon't loose the elevation in ATC projection conversions
daveluff [Fri, 23 Jan 2004 17:14:08 +0000 (17:14 +0000)]
Don't loose the elevation in ATC projection conversions

20 years agoUse fgGetBool to assign a boolean variable
ehofman [Fri, 23 Jan 2004 09:46:56 +0000 (09:46 +0000)]
Use fgGetBool to assign a boolean variable

20 years agoMake the AI models a bit more intelligent. The Gear should be extended and retracted...
ehofman [Thu, 22 Jan 2004 21:13:47 +0000 (21:13 +0000)]
Make the AI models a bit more intelligent. The Gear should be extended and retracted automatically, the navigation lights turn on when sun-angle-rad > 1.57, strobe and beacon are always on and make sure all properties are returned in the right unit format.

20 years agoMake it possible to truncate the result of a number-value text chunk calculation...
ehofman [Thu, 22 Jan 2004 18:42:42 +0000 (18:42 +0000)]
Make it possible to truncate the result of a number-value text chunk calculation rather than rounding it by specifying <truncate>true</truncate> inside the chunk.

20 years agoDon't default to exactly zero RPM if the RPM property isn't there.
andy [Wed, 21 Jan 2004 22:51:21 +0000 (22:51 +0000)]
Don't default to exactly zero RPM if the RPM property isn't there.
The engine model doesn't like that.

20 years agoCheck for less than -1.0 also.
ehofman [Mon, 19 Jan 2004 14:26:24 +0000 (14:26 +0000)]
Check for less than -1.0 also.

20 years agoTurn the console colors back to default before continueing
ehofman [Mon, 19 Jan 2004 13:51:05 +0000 (13:51 +0000)]
Turn the console colors back to default before continueing

20 years agoFix a problem where the dot product might possibly be greater than 1.0 causing a...
ehofman [Mon, 19 Jan 2004 13:46:47 +0000 (13:46 +0000)]
Fix a problem where the dot product might possibly be greater than 1.0 causing a NaN for the following acos()

20 years agoDocument support for formation-lights
ehofman [Sat, 17 Jan 2004 10:38:52 +0000 (10:38 +0000)]
Document support for formation-lights

20 years agoFix a posible devide by zero situation
ehofman [Thu, 15 Jan 2004 18:10:00 +0000 (18:10 +0000)]
Fix a posible devide by zero situation

20 years agoMSVC fix
ehofman [Thu, 15 Jan 2004 10:18:51 +0000 (10:18 +0000)]
MSVC fix