summaryrefslogtreecommitdiff
path: root/BlockTree.cpp
diff options
context:
space:
mode:
authorJapa2011-02-27 18:00:51 +0000
committerJapa2011-02-27 18:00:51 +0000
commit663aa547439c9c2dc977bb3601d91f11e176b83a (patch)
tree554d5b400c3b5d53ae3e9c196a4b474395b36972 /BlockTree.cpp
parent62050f4bc59775609be524a90764fe9cf5a5f4ee (diff)
downloadstonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.gz
stonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.bz2
stonesense-663aa547439c9c2dc977bb3601d91f11e176b83a.tar.xz
More bugfixing. changed the way trees are read.
Diffstat (limited to 'BlockTree.cpp')
-rw-r--r--BlockTree.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/BlockTree.cpp b/BlockTree.cpp
index 23621f4..fd331ea 100644
--- a/BlockTree.cpp
+++ b/BlockTree.cpp
@@ -12,11 +12,7 @@ c_block_tree_twig::~c_block_tree_twig()
void c_block_tree_twig::insert_sprites(WorldSegment *w, int x, int y, int z)
{
- if(
- !(x < w->x || x >= w->x + w->sizex) &&
- !(y < w->y || y >= w->y + w->sizey) &&
- !(z < w->z || z >= w->z + w->sizez)
- )
+ if(w->CoordinateInsideSegment(x,y,z))
if(own_sprite.get_sheetindex() >= 0)
{
Block * b_orig = w->getBlock(x, y, z);