diff options
| author | Jonas Ask | 2009-11-10 01:43:11 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-11-10 01:43:11 +0000 |
| commit | fee888b734a789273048d96a0f4ba549af213501 (patch) | |
| tree | 6857dfaff4b0dddd3d10ea0354b95754a0d4dabc /WorldSegment.cpp | |
| parent | fee8c8d689abd4f5e37b72a3e8c6ca8e85a4034e (diff) | |
| download | stonesense-fee888b734a789273048d96a0f4ba549af213501.tar.gz stonesense-fee888b734a789273048d96a0f4ba549af213501.tar.bz2 stonesense-fee888b734a789273048d96a0f4ba549af213501.tar.xz | |
Tiny bugfix related to previous commit
Diffstat (limited to 'WorldSegment.cpp')
| -rw-r--r-- | WorldSegment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp index 05bf05b..e44caee 100644 --- a/WorldSegment.cpp +++ b/WorldSegment.cpp @@ -105,7 +105,7 @@ void WorldSegment::drawAllBlocks(BITMAP* target){ }
break;
case 2:
- for(int32_t vsx=vsymax-1; vsx >= viewedSegment->x; vsx--){
+ for(int32_t vsx=vsxmax-1; vsx >= viewedSegment->x; vsx--){
for(int32_t vsy=vsymax-1; vsy >= viewedSegment->y; vsy--){
Block *b = getBlock(vsx,vsy,vsz);
if (b)
@@ -116,7 +116,7 @@ void WorldSegment::drawAllBlocks(BITMAP* target){ }
break;
case 3:
- for(int32_t vsx=vsymax-1; vsx >= viewedSegment->x; vsx--){
+ for(int32_t vsx=vsxmax-1; vsx >= viewedSegment->x; vsx--){
for(int32_t vsy=viewedSegment->y; vsy < vsymax; vsy++){
Block *b = getBlock(vsx,vsy,vsz);
if (b)
|
