diff options
| author | Japa | 2010-09-11 10:08:00 +0000 |
|---|---|---|
| committer | Japa | 2010-09-11 10:08:00 +0000 |
| commit | f289538a4f71e65f4e94503631d0c0852daad518 (patch) | |
| tree | 89f88a8a096aaf6b85609381485c0e16fb23e449 /WorldSegment.cpp | |
| parent | f5cd4faed27242435796b21ee6ecf3599930acfd (diff) | |
| download | stonesense-f289538a4f71e65f4e94503631d0c0852daad518.tar.gz stonesense-f289538a4f71e65f4e94503631d0c0852daad518.tar.bz2 stonesense-f289538a4f71e65f4e94503631d0c0852daad518.tar.xz | |
preliminary multithreading work. still needs stuff done to the block allocators to make things not crash.
Diffstat (limited to 'WorldSegment.cpp')
| -rw-r--r-- | WorldSegment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WorldSegment.cpp b/WorldSegment.cpp index 68c0d38..213649c 100644 --- a/WorldSegment.cpp +++ b/WorldSegment.cpp @@ -148,6 +148,8 @@ viewedSegment->blocks[i]->Draw(target); }*/
void WorldSegment::drawAllBlocks(){
+ if(!loaded)
+ return;
// x,y,z print pricess
ALLEGRO_BITMAP * temp = al_get_target_bitmap();
|
