Maik Justus wrote:
> Hello Fred,
>
> Frederic Bouvier wrote:
>
> >Hi,
> >
> >There is a bug ( at least for me with MSVC ) in Rotor.cpp related with
the
> >usage of the % operator. In MSVC -1 % 4 == -1 not 3,
> >
> oh, good to know!
Could it be corrected before the release ( patch below ) ?
Thanks
-Fred
D:\FlightGear\cvs\FlightGear\src\FDM\YASim>cvs diff -u Rotor.cpp
Index: Rotor.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/FDM/YASim/Rotor.cpp,v
retrieving revision 1.2
diff -u -r1.2 Rotor.cpp
--- Rotor.cpp 17 Oct 2003 14:26:23 -0000 1.2
+++ Rotor.cpp 19 Oct 2003 09:06:54 -0000
@@ -609,7 +609,7 @@
for (i=0;i<4;i++)
{
- rps[i]->setlastnextrp(rps[(i-1)%4],rps[(i+1)%4],rps[(i+2)%4]);
+ rps[i]->setlastnextrp(rps[(i+3)%4],rps[(i+1)%4],rps[(i+2)%4]);
}
}
else
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel