summaryrefslogtreecommitdiff
path: root/WorldSegment.cpp
diff options
context:
space:
mode:
authorKris Parker2009-11-21 01:51:03 +0000
committerKris Parker2009-11-21 01:51:03 +0000
commit28799e962f909c40d8578402387a7d7366b00fbc (patch)
tree0e118d022f0b0e2cf6312eedb9e191ed5647250a /WorldSegment.cpp
parent2b36d0eb1f2b2fff7f0068ff7c75879e4a41fa7b (diff)
downloadstonesense-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 'WorldSegment.cpp')
-rw-r--r--WorldSegment.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp
index 7c17a6f..b071518 100644
--- a/WorldSegment.cpp
+++ b/WorldSegment.cpp
@@ -145,12 +145,12 @@ void WorldSegment::drawAllBlocks(BITMAP* target){
void WorldSegment::drawAllBlocks(BITMAP* target){
// x,y,z print pricess
- int32_t vsxmax = viewedSegment->sizex;
- int32_t vsymax = viewedSegment->sizey;
+ int32_t vsxmax = viewedSegment->sizex-1;
+ int32_t vsymax = viewedSegment->sizey-1;
int32_t vszmax = viewedSegment->sizez;
for(int32_t vsz=0; vsz < vszmax; vsz++){
- for(int32_t vsx=0; vsx < vsxmax; vsx++){
- for(int32_t vsy=0; vsy < vsymax; vsy++){
+ for(int32_t vsx=1; vsx < vsxmax; vsx++){
+ for(int32_t vsy=1; vsy < vsymax; vsy++){
Block *b = getBlockLocal(vsx,vsy,vsz);
if (b==NULL || (b->floorType == 0 && b->ramp.type == 0 && b->wallType == 0))
{