summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r--src/chunk-scenery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index 7852088f..134a1e44 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -104,8 +104,8 @@ auto chunk::make_topo_sort_data(entity& e) -> topo_sort_data
{
data.slope = (bb_max[1]-bb_min[1])/bb_len;
data.mode = topo_sort_data::mode_static;
- data.bb_min = Vector2s(bb_min);
- data.bb_max = Vector2s(bb_max);
+ data.bb_min = Vector2s(bb_min - px_start);
+ data.bb_max = Vector2s(bb_max - px_start);
}
break;
}