diff options
| author | Caldfir | 2012-04-30 23:29:55 -0700 |
|---|---|---|
| committer | Caldfir | 2012-04-30 23:29:55 -0700 |
| commit | de37dc02d5fd359d8596d6aaf3f70c2b12c47e87 (patch) | |
| tree | 4085b5eaae35944c5e703cc9721d4227e7a2342d /Block.cpp | |
| parent | 8b43f056d79e62a6300842692fa2892bf2d81d6e (diff) | |
| download | stonesense-de37dc02d5fd359d8596d6aaf3f70c2b12c47e87.tar.gz stonesense-de37dc02d5fd359d8596d6aaf3f70c2b12c47e87.tar.bz2 stonesense-de37dc02d5fd359d8596d6aaf3f70c2b12c47e87.tar.xz | |
Fixed up embark-sized screenshots and corrected an error that was causing drift along the screen's y-direction as zoom increased/decreased.
Diffstat (limited to 'Block.cpp')
| -rw-r--r-- | Block.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -146,6 +146,7 @@ void Block::Draw() pointToScreen((int*)&drawx, (int*)&drawy, drawz);
drawx -= (TILEWIDTH>>1)*config.scale;
+ //TODO the following check should get incorporated into segment beautification
if(((drawx + TILEWIDTH*config.scale) < 0) || (drawx > al_get_bitmap_width(al_get_target_bitmap())) || ((drawy + (TILEHEIGHT + FLOORHEIGHT)*config.scale) < 0) || (drawy - WALLHEIGHT*config.scale > al_get_bitmap_height(al_get_target_bitmap())))
return;
|
