From 72f2c5c4f44885470320ebbe2da770bef218d3ed Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 26 Jan 2004 22:44:27 +0000 Subject: [PATCH] Fix a type ... --- src/Scenery/tilemgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 29a1350bc..3e9ef993e 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -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)