summaryrefslogtreecommitdiff
path: root/WorldSegment.cpp
diff options
context:
space:
mode:
authorKris Parker2009-10-30 17:44:30 +0000
committerKris Parker2009-10-30 17:44:30 +0000
commitf07450f6ff28496aa36245b2cb352fbcdaad2588 (patch)
treebeb8fcfc945fec55191e3bf174a5259881a1fae7 /WorldSegment.cpp
parent2dca0ef87d1f65a07142eb6fc977e69ccc80f2ce (diff)
downloadstonesense-f07450f6ff28496aa36245b2cb352fbcdaad2588.tar.gz
stonesense-f07450f6ff28496aa36245b2cb352fbcdaad2588.tar.bz2
stonesense-f07450f6ff28496aa36245b2cb352fbcdaad2588.tar.xz
Bug in x,y,z display bounds
Diffstat (limited to 'WorldSegment.cpp')
-rw-r--r--WorldSegment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp
index 3ebe7f9..d78c4c9 100644
--- a/WorldSegment.cpp
+++ b/WorldSegment.cpp
@@ -79,7 +79,7 @@ void WorldSegment::drawAllBlocks(BITMAP* target){
// x,y,z print pricess
uint32_t vsxmax = viewedSegment->x + viewedSegment->sizex;
uint32_t vsymax = viewedSegment->y + viewedSegment->sizey;
- uint32_t vszmax = viewedSegment->y + viewedSegment->sizez;
+ uint32_t vszmax = viewedSegment->z + viewedSegment->sizez;
for(uint32_t vsx=viewedSegment->x; vsx < vsxmax; vsx++){
for(uint32_t vsy=viewedSegment->y; vsy < vsymax; vsy++){
for(uint32_t vsz=viewedSegment->z; vsz < vszmax; vsz++){