1
0
Fork 0

Removed tile radius option. Range of tiles to be loaded is now controled

by the visibility distance.
This commit is contained in:
curt 2000-12-03 20:13:58 +00:00
parent 57a4c79eb5
commit 11987d96c3
2 changed files with 0 additions and 36 deletions

View file

@ -191,9 +191,6 @@ FGOptions::FGOptions() :
view_mode(FG_VIEW_PILOT), view_mode(FG_VIEW_PILOT),
default_view_offset(0), default_view_offset(0),
// Scenery options
tile_diameter(5),
// HUD options // HUD options
units(FG_UNITS_FEET), units(FG_UNITS_FEET),
tris_or_culled(0), tris_or_culled(0),
@ -496,21 +493,6 @@ FGOptions::parse_time_offset( const string& time_str) {
} }
// Parse --tile-diameter=n type option
int
FGOptions::parse_tile_radius( const string& arg ) {
int radius = atoi( arg );
if ( radius < FG_RADIUS_MIN ) { radius = FG_RADIUS_MIN; }
if ( radius > FG_RADIUS_MAX ) { radius = FG_RADIUS_MAX; }
// printf("parse_tile_radius(): radius = %d\n", radius);
return(radius);
}
// Parse --fdm=abcdefg type option // Parse --fdm=abcdefg type option
int int
FGOptions::parse_fdm( const string& fm ) { FGOptions::parse_fdm( const string& fm ) {
@ -882,9 +864,6 @@ int FGOptions::parse_option( const string& arg ) {
units = FG_UNITS_FEET; units = FG_UNITS_FEET;
} else if ( arg == "--units-meters" ) { } else if ( arg == "--units-meters" ) {
units = FG_UNITS_METERS; units = FG_UNITS_METERS;
} else if ( arg.find( "--tile-radius=" ) != string::npos ) {
tile_radius = parse_tile_radius( arg.substr(14) );
tile_diameter = tile_radius * 2 + 1;
} else if ( arg.find( "--time-offset" ) != string::npos ) { } else if ( arg.find( "--time-offset" ) != string::npos ) {
time_offset = parse_time_offset( (arg.substr(14)) ); time_offset = parse_time_offset( (arg.substr(14)) );
//time_offset_type = FG_TIME_SYS_OFFSET; //time_offset_type = FG_TIME_SYS_OFFSET;

View file

@ -195,14 +195,6 @@ private:
double default_view_offset; // default forward view offset (for use by double default_view_offset; // default forward view offset (for use by
// multi-display configuration // multi-display configuration
// Scenery options
int tile_radius; // Square radius of rendered tiles (around center
// square.)
int tile_diameter; // Diameter of rendered tiles. for instance
// if tile_diameter = 3 then a 3 x 3 grid of tiles will
// be drawn. Increase this to see terrain that is
// further away.
// HUD options // HUD options
int units; // feet or meters int units; // feet or meters
int tris_or_culled; int tris_or_culled;
@ -305,10 +297,6 @@ public:
return default_view_offset; return default_view_offset;
} }
inline int get_tile_radius() const { return tile_radius; }
inline int get_tile_diameter() const { return tile_diameter; }
inline int get_units() const { return units; } inline int get_units() const { return units; }
inline int get_tris_or_culled() const { return tris_or_culled; } inline int get_tris_or_culled() const { return tris_or_culled; }
@ -373,8 +361,6 @@ public:
inline void set_xsize( int x ) { xsize = x; } inline void set_xsize( int x ) { xsize = x; }
inline void set_ysize( int y ) { ysize = y; } inline void set_ysize( int y ) { ysize = y; }
inline void set_view_mode (fgViewMode value) { view_mode = value; } inline void set_view_mode (fgViewMode value) { view_mode = value; }
inline void set_tile_radius (int value) { tile_radius = value; }
inline void set_tile_diameter (int value) { tile_diameter = value; }
inline void set_units (int value) { units = value; } inline void set_units (int value) { units = value; }
inline void set_tris_or_culled (int value) { tris_or_culled = value; } inline void set_tris_or_culled (int value) { tris_or_culled = value; }
inline void set_time_offset (int value) { time_offset = value; } inline void set_time_offset (int value) { time_offset = value; }
@ -399,7 +385,6 @@ private:
long int parse_date( const string& date_str ); long int parse_date( const string& date_str );
double parse_degree( const string& degree_str ); double parse_degree( const string& degree_str );
int parse_time_offset( const string& time_str ); int parse_time_offset( const string& time_str );
int parse_tile_radius( const string& arg );
int parse_fdm( const string& fm ); int parse_fdm( const string& fm );
double parse_fov( const string& arg ); double parse_fov( const string& arg );
bool parse_channel( const string& type, const string& channel_str ); bool parse_channel( const string& type, const string& channel_str );