summaryrefslogtreecommitdiff
path: root/WorldSegment.cpp
diff options
context:
space:
mode:
authorJapa2010-12-14 14:13:43 +0000
committerJapa2010-12-14 14:13:43 +0000
commita70e0aabbf9a1c4463591ab0614f25d41477046e (patch)
treed74f2f45eecfb13d4384699f910b223fee03628c /WorldSegment.cpp
parentf289538a4f71e65f4e94503631d0c0852daad518 (diff)
downloadstonesense-a70e0aabbf9a1c4463591ab0614f25d41477046e.tar.gz
stonesense-a70e0aabbf9a1c4463591ab0614f25d41477046e.tar.bz2
stonesense-a70e0aabbf9a1c4463591ab0614f25d41477046e.tar.xz
more stuff to the tilebuilder branch. I'm about to start ripping it a new one now that it works okay.
Diffstat (limited to 'WorldSegment.cpp')
-rw-r--r--WorldSegment.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp
index 213649c..00d07b1 100644
--- a/WorldSegment.cpp
+++ b/WorldSegment.cpp
@@ -151,6 +151,7 @@ void WorldSegment::drawAllBlocks(){
if(!loaded)
return;
+ al_lock_mutex(mute);
// x,y,z print pricess
ALLEGRO_BITMAP * temp = al_get_target_bitmap();
int32_t vsxmax = viewedSegment->sizex-1;
@@ -230,6 +231,7 @@ void WorldSegment::drawAllBlocks(){
}
if(config.showRenderStatus)
SetTitle("Stonesense");
+ al_unlock_mutex(mute);
}
/*