On Sunday 01 April 2007, Csaba Halász wrote:
> In fg/osg if you successfully catch a wire during carrier landing fg
> "freezes": no screen updates whatsoever.
> I have traced this bug to FGGroundCache::get_wire_ends().
> Looks like during the rewrite to use overloaded operators a mistake
> was made in the pivotoff calculation.
>
> The original version (rev 1.17):
>
> sgdVec3 pivotoff;
> sgdCopyVec3(end[k], wires[i].ends[k]);
> sgdSubVec3(pivotoff, end[k], wires[i].rotation_pivot);
>
> Next version (rev 1.18):
>
> SGVec3d pivotoff = end[k] - wires[i].rotation_pivot;
>
> Note that at this point end[k] is still uninitialized.
> The correct code imho would be:
> SGVec3d pivotoff = wires[i].ends[k] - wires[i].rotation_pivot;
>
> Diff attached, comments welcome.
Good catch. Diff applied. Thanks!

    Greetings

         Mathias

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to