summaryrefslogtreecommitdiff
path: root/WorldSegment.h
diff options
context:
space:
mode:
authorJapa2011-01-20 04:14:21 +0000
committerJapa2011-01-20 04:14:21 +0000
commit89dfda82b905eb4a14d3a1bc602aef5e7e3216ea (patch)
treec472b3b24c56b4056abad6dac85ed610115eff2d /WorldSegment.h
parenta70e0aabbf9a1c4463591ab0614f25d41477046e (diff)
downloadstonesense-89dfda82b905eb4a14d3a1bc602aef5e7e3216ea.tar.gz
stonesense-89dfda82b905eb4a14d3a1bc602aef5e7e3216ea.tar.bz2
stonesense-89dfda82b905eb4a14d3a1bc602aef5e7e3216ea.tar.xz
first working multithreaded version.
Diffstat (limited to 'WorldSegment.h')
-rw-r--r--WorldSegment.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/WorldSegment.h b/WorldSegment.h
index bdf6ce5..227a9df 100644
--- a/WorldSegment.h
+++ b/WorldSegment.h
@@ -9,11 +9,11 @@ public:
bool loaded;
int x, y, z;
int sizex, sizey, sizez;
+ unsigned char rotation;
Crd3D regionSize;
Block** blocksAsPointerVolume;
WorldSegment(int x, int y, int z, int sizex, int sizey, int sizez)
{
- mute = al_create_mutex();
this->x = x;
this->y = y;
this->z = z - sizez + 1;
@@ -29,9 +29,6 @@ public:
}
~WorldSegment(){
- al_lock_mutex(mute);
- al_unlock_mutex(mute);
- al_destroy_mutex(mute);
uint32_t num = (uint32_t)blocks.size();
for(uint32_t i = 0; i < num; i++){
delete(blocks[i]);
@@ -54,5 +51,4 @@ public:
void addBlock(Block* b);
void drawAllBlocks();
bool CoordinateInsideSegment(uint32_t x, uint32_t y, uint32_t z);
- ALLEGRO_MUTEX * mute;
}; \ No newline at end of file