diff options
| author | Kris Parker | 2009-11-21 01:51:03 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-21 01:51:03 +0000 |
| commit | 28799e962f909c40d8578402387a7d7366b00fbc (patch) | |
| tree | 0e118d022f0b0e2cf6312eedb9e191ed5647250a /Config.cpp | |
| parent | 2b36d0eb1f2b2fff7f0068ff7c75879e4a41fa7b (diff) | |
| download | stonesense-28799e962f909c40d8578402387a7d7366b00fbc.tar.gz stonesense-28799e962f909c40d8578402387a7d7366b00fbc.tar.bz2 stonesense-28799e962f909c40d8578402387a7d7366b00fbc.tar.xz | |
Load extra tile of data to fix a bunch of graphics glitches at the edge
Diffstat (limited to 'Config.cpp')
| -rw-r--r-- | Config.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -69,8 +69,9 @@ void parseConfigLine( string line ){ int value = parseIntFromLine( "SEGMENTSIZE_XY", line );
if(value < 5) value = DEFAULT_SEGMENTSIZE;
if(value > 100) value = 100;
- config.segmentSize.x = value;
- config.segmentSize.y = value;
+ //plus 2 to allow edge readings
+ config.segmentSize.x = value+2;
+ config.segmentSize.y = value+2;
}
if( line.find("SEGMENTSIZE_Z") != -1){
int value = parseIntFromLine( "SEGMENTSIZE_Z", line );
|
