CVS: source/src/Main viewer.cxx,1.40,1.41

James Turner <[email protected]>
Newsgroups gmane.games.flightgear.cvc
Message-ID <[email protected]>
Update of /var/cvs/FlightGear-0.9/source/src/Main
In directory baron.flightgear.org:/tmp/cvs-serv25288/src/Main

Modified Files:
	viewer.cxx 
Log Message:
bug99 - Fix case where damping is enabled, but factor is 0.


Index: viewer.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Main/viewer.cxx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- viewer.cxx	30 Mar 2010 22:15:23 -0000	1.40
+++ viewer.cxx	1 Apr 2010 11:57:02 -0000	1.41
@@ -501,6 +501,8 @@
     
     for (unsigned int i=0; i<3; ++i) {
       if (_dampFactor[i] <= 0.0) {
+        // axis is un-damped, set output to target directly
+        _dampOutput[i] = _dampTarget[i];
         continue;
       }
       


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.