summaryrefslogtreecommitdiff
path: root/WorldSegment.cpp
diff options
context:
space:
mode:
authorKris Parker2009-12-12 15:24:01 +0000
committerKris Parker2009-12-12 15:24:01 +0000
commitca61395a22bf8b717797aaf63f6ecaf97c6faf2a (patch)
treedd8145c346a07bf3c7bf6a4f7df534fbbad54b72 /WorldSegment.cpp
parent830dd362b8445f9d15d191f6cc9aa5267b86500c (diff)
downloadstonesense-ca61395a22bf8b717797aaf63f6ecaf97c6faf2a.tar.gz
stonesense-ca61395a22bf8b717797aaf63f6ecaf97c6faf2a.tar.bz2
stonesense-ca61395a22bf8b717797aaf63f6ecaf97c6faf2a.tar.xz
Trunking the RampBLUT
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 b071518..cb8a629 100644
--- a/WorldSegment.cpp
+++ b/WorldSegment.cpp
@@ -147,7 +147,7 @@ void WorldSegment::drawAllBlocks(BITMAP* target){
// x,y,z print pricess
int32_t vsxmax = viewedSegment->sizex-1;
int32_t vsymax = viewedSegment->sizey-1;
- int32_t vszmax = viewedSegment->sizez;
+ int32_t vszmax = viewedSegment->sizez-1; // grabbing one tile +z more than we should for tile rules
for(int32_t vsz=0; vsz < vszmax; vsz++){
for(int32_t vsx=1; vsx < vsxmax; vsx++){
for(int32_t vsy=1; vsy < vsymax; vsy++){