]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a type ...
authorcurt <curt>
Mon, 26 Jan 2004 22:44:27 +0000 (22:44 +0000)
committercurt <curt>
Mon, 26 Jan 2004 22:44:27 +0000 (22:44 +0000)
src/Scenery/tilemgr.cxx

index 29a1350bc1854ff9fc3824f3f3cb0522a3a77b6e..3e9ef993ec3d0f3ce080f651401e8af619fa4163 100644 (file)
@@ -177,7 +177,7 @@ void FGTileMgr::schedule_needed( double vis, SGBucket curr_bucket) {
 
     xrange = (int)(vis / tile_width) + 1;
     yrange = (int)(vis / tile_height) + 1;
-    if ( xrange < 1 ) { xrange /= 1; }
+    if ( xrange < 1 ) { xrange = 1; }
     if ( yrange < 1 ) { yrange = 1; }
 
     // note * 2 at end doubles cache size (for fdm and viewer)