summaryrefslogtreecommitdiff
path: root/WorldSegment.h
diff options
context:
space:
mode:
authorKris Parker2009-12-20 03:12:05 +0000
committerKris Parker2009-12-20 03:12:05 +0000
commit03c7cf16ffdba69901bcf8de58ea4a89ccbfa3d0 (patch)
treee2ae6d821926025ba36ecc22f649396db5cc24b4 /WorldSegment.h
parentff36bb3fe9435a0fb5f301e7f25ce7c67022ded1 (diff)
downloadstonesense-03c7cf16ffdba69901bcf8de58ea4a89ccbfa3d0.tar.gz
stonesense-03c7cf16ffdba69901bcf8de58ea4a89ccbfa3d0.tar.bz2
stonesense-03c7cf16ffdba69901bcf8de58ea4a89ccbfa3d0.tar.xz
ensure temp fog bitmap is cleaned up on shutdown
Diffstat (limited to 'WorldSegment.h')
-rw-r--r--WorldSegment.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/WorldSegment.h b/WorldSegment.h
index 06a744a..4ecb409 100644
--- a/WorldSegment.h
+++ b/WorldSegment.h
@@ -10,13 +10,14 @@ public:
int sizex, sizey, sizez;
Crd3D regionSize;
Block** blocksAsPointerVolume;
-
+ BITMAP* level;
WorldSegment(int x, int y, int z, int sizex, int sizey, int sizez){
this->x = x;
this->y = y;
this->z = z - sizez + 1;
this->sizex = sizex; this->sizey = sizey; this->sizez = sizez;
+ level = NULL;
regionSize.x = regionSize.y = regionSize.z = 0;
@@ -31,6 +32,8 @@ public:
delete(blocks[i]);
}
blocks.clear();
+ if (level)
+ destroy_bitmap(level);
}
void Dispose(void){