Re: [Flightgear-devel] There have problems with VC8 project files In FlightGear 1.9 source code.

2009-01-10 Thread Frederic Bouvier
Hi, You'd better start from MSVC 7.1 project files that are maintained. By the way, I am thinking of removing VS2005 / 8 files that are redundant and confusing. Any objection ? -Fred ?? a ??crit : These days, I compile FlightGear 1.9 source code with MSVC2005, I found the project files

Re: [Flightgear-devel] There have problems with VC8 project files In FlightGear 1.9 source code.

2009-01-10 Thread Vivian Meazza
Why not use MSVC2008 – its available free from MS. And then as Fred says convert from the 7.1 project files. I think we could remove the VC8 stuff now. It’s redundant, and misleading. Vivian -Original Message- From: »ÆÖ¾Ó [mailto:hzy5...@163.com] Sent: 10 January 2009 06:56

[Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread Csaba Halász
#2 0x0080188d in FGNavRadio::update (this=0x98df490, dt=0.058334) at src/Instrumentation/navradio.cxx:613 613 double angle = asin( y / x ) * SGD_RADIANS_TO_DEGREES; (gdb) p x $1 = 3.2580450943147174 (gdb) p y $2 = 3.258443598627875 (gdb) p y / x $3 =

Re: [Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread John Denker
On 01/10/2009 09:13 AM, Csaba Halász wrote: #2 0x0080188d in FGNavRadio::update (this=0x98df490, dt=0.058334) at src/Instrumentation/navradio.cxx:613 613 double angle = asin( y / x ) * SGD_RADIANS_TO_DEGREES; (gdb) p x $1 = 3.2580450943147174 (gdb) p

Re: [Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread Csaba Halász
On Sat, Jan 10, 2009 at 5:50 PM, John Denker j...@av8n.com wrote: On 01/10/2009 09:13 AM, Csaba Halász wrote: #2 0x0080188d in FGNavRadio::update (this=0x98df490, dt=0.058334) at src/Instrumentation/navradio.cxx:613 613 double angle = asin( y / x ) *

Re: [Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread John Denker
On 01/10/2009 10:22 AM, Csaba Halász wrote: Clamping it is guaranteed 100% safe and effective. Something like the attached patch? Not sure what to do about the x == 0 case. How about this version? It assumes dist is not less than zero, but is otherwise pretty defensive. diff --git

Re: [Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread Csaba Halász
On Sat, Jan 10, 2009 at 6:49 PM, John Denker j...@av8n.com wrote: On 01/10/2009 10:22 AM, Csaba Halász wrote: Clamping it is guaranteed 100% safe and effective. Something like the attached patch? Not sure what to do about the x == 0 case. How about this version? It assumes dist is not less

[Flightgear-devel] GL_COLOR_MATERIAL error

2009-01-10 Thread gerard robin
Hello, I get now that error ( it is only a warning) Error: Setting mode 'GL_COLOR_MATERIAL' via osg::StateSet::setMode(mode,value) ignored. The mode 'GL_COLOR_MATERIAL' is set by the osg::Material StateAttribute. Setting this as a mode fools osg's State tracking. Where do i

Re: [Flightgear-devel] [BUG] invalid argument to asin() in Instrumentation/navradio.cxx

2009-01-10 Thread John Denker
On 01/10/2009 11:10 AM, Csaba Halász wrote: That approach could also work. Of course the real problem is that this code should never have been performing an asin() in the first place. It's been that way for many years, and it works OK in typical cases, but it is unphysical and (as we have

[Flightgear-devel] dialogs now resizable

2009-01-10 Thread Melchior FRANZ
I've just committed code that makes selected dialogs resizable, namely those with resizabletrue/resizable setting. Resizing is at the moment done like dragging, but with Ctrl-key pressed (at the beginning). Dialogs expand to North-East, which is a bit unusual and might be changed later. Please

Re: [Flightgear-devel] [PATCH] fix division by zero in AICarrier

2009-01-10 Thread Ron Jensen
On Fri, 2009-01-02 at 12:35 +, James Turner wrote: On 2 Jan 2009, at 04:20, Csaba Halász wrote: Found the feenableexcept() function, so expect more of these :) Thanks to Ron for his help. Applied. Frankly, all uses of atan() should probably be replaced with atan2(), but with some