While Im not positive this is the problem ... I noticed these lines in
cloud.cxx starting at line 706:

        if (sp_dist > 0) {
            bx = cos((180.0-direction) * SGD_DEGREES_TO_RADIANS) * sp_dist;
            by = sin((180.0-direction) * SGD_DEGREES_TO_RADIANS) * sp_dist;
        }

I dont see where 'direction' is calculated - it appears to always be 0
unless I'm missing something....
Changing those above lines to this :


        if (sp_dist > 0) {
            bx = cos((180.0-getDirection()) * SGD_DEGREES_TO_RADIANS) *
sp_dist;
            by = sin((180.0-getDirection()) * SGD_DEGREES_TO_RADIANS) *
sp_dist;
        }

seems to solve the problem , but I only did a short test ...that may not be
a proper fix.

Hope this help narrow down the search

Cheers
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to