summaryrefslogtreecommitdiffhomepage
path: root/src/ground-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-10 05:39:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-10 05:39:10 +0100
commit972275ca9cfbbbe23039c0cecb359420358d8ebf (patch)
tree77975d0349250c68ecbaf5f094cafee894a10773 /src/ground-atlas.cpp
parent25fd6d8eb0ec170ef6fabfb3097fe5f70e42edb8 (diff)
loader: don't require atlas's Cell pointer to remain constant
The make_cell() thing hasn't been tested yet.
Diffstat (limited to 'src/ground-atlas.cpp')
-rw-r--r--src/ground-atlas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ground-atlas.cpp b/src/ground-atlas.cpp
index ea513d44..d39ecadc 100644
--- a/src/ground-atlas.cpp
+++ b/src/ground-atlas.cpp
@@ -18,6 +18,7 @@ ground_atlas::ground_atlas(ground_def info, const ImageView2D& image) :
_texcoords{make_texcoords_array(Vector2ui(image.size()), _def.size)},
_pixel_size{image.size()}
{
+ //Debug{} << "make ground_atlas" << _def.name;
constexpr auto variant_max = std::numeric_limits<variant_t>::max();
fm_soft_assert(num_tiles() <= variant_max);
fm_soft_assert(_def.size.x() > 0 && _def.size.y() > 0);