patches/crrcsim-07.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 1473 40734173a8fe
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1473
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     1
--- crrcsim-0.9.9.orig/windfield.cpp	Thu Mar 20 21:28:56 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     2
+++ crrcsim-0.9.9/windfield.cpp	Sun Nov  2 14:12:42 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     3
@@ -385,7 +385,7 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     4
     if (dDensity > dDensityMax)
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     5
       dDensity = dDensityMax;
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     6
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     7
-    num_thermals = (int)(pow(occupancy_grid_size*occupancy_grid_res,2)*
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     8
+    num_thermals = (int)(pow((double)occupancy_grid_size*occupancy_grid_res,2)*
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     9
                          dDensity);
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    10
   }
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    11