diff options
| author | Japa | 2011-01-22 17:08:23 +0000 |
|---|---|---|
| committer | Japa | 2011-01-22 17:08:23 +0000 |
| commit | 61e6f6965835e4ee347de7b476b5e83db9828c39 (patch) | |
| tree | 572963acda146e35bf2072bee823fe3d623d7854 /WorldSegment.h | |
| parent | 182076425fad86ed1a442ea222eb4e98fe50782e (diff) | |
| download | stonesense-61e6f6965835e4ee347de7b476b5e83db9828c39.tar.gz stonesense-61e6f6965835e4ee347de7b476b5e83db9828c39.tar.bz2 stonesense-61e6f6965835e4ee347de7b476b5e83db9828c39.tar.xz | |
updated DFhack. fixed some crashes.
Diffstat (limited to 'WorldSegment.h')
| -rw-r--r-- | WorldSegment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WorldSegment.h b/WorldSegment.h index 227a9df..fb6792e 100644 --- a/WorldSegment.h +++ b/WorldSegment.h @@ -6,6 +6,7 @@ class WorldSegment{ private:
vector<Block*> blocks;
public:
+ ALLEGRO_MUTEX * mutie;
bool loaded;
int x, y, z;
int sizex, sizey, sizez;
@@ -26,6 +27,7 @@ public: uint32_t memoryNeeded = sizex * sizey * sizez * sizeof(Block*);
blocksAsPointerVolume = (Block**) malloc( memoryNeeded );
memset(blocksAsPointerVolume, 0, memoryNeeded);
+ mutie = al_create_mutex();
}
~WorldSegment(){
@@ -38,6 +40,7 @@ public: void Dispose(void){
free(blocksAsPointerVolume);
+ al_destroy_mutex(mutie);
}
uint32_t getNumBlocks(){
|
