diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-09-26 00:28:48 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-09-26 23:58:56 +0100 |
commit | ffe291cb78fc7135034fe6456b2d7dfc3761dc52 (patch) | |
tree | 076eb1efd1eb2c7e12d7b7b2a291575d09aabb7c /src/mg_decoration.cpp | |
parent | e7282816fffc433861e7e83b0bf1de701d3ea2d1 (diff) | |
download | minetest-ffe291cb78fc7135034fe6456b2d7dfc3761dc52.tar.gz minetest-ffe291cb78fc7135034fe6456b2d7dfc3761dc52.tar.bz2 minetest-ffe291cb78fc7135034fe6456b2d7dfc3761dc52.zip |
Decorations: Remove error message 'chunksize not divisable by sidelen'
Sidelen larger than 16 is essential for low density decorations
With sidelen > 16 chunksize may not be divisable by sidelen if
chunksize is changed, in this situation setting sidelen = chunksize
is desirable and should not create error messages.
Diffstat (limited to 'src/mg_decoration.cpp')
-rw-r--r-- | src/mg_decoration.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mg_decoration.cpp b/src/mg_decoration.cpp index f11a71518..4f543a7dd 100644 --- a/src/mg_decoration.cpp +++ b/src/mg_decoration.cpp @@ -90,11 +90,9 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) int carea_size = nmax.X - nmin.X + 1; // Divide area into parts - if (carea_size % sidelen) { - errorstream << "Decoration::placeDeco: chunk size is not divisible by " - "sidelen; setting sidelen to " << carea_size << std::endl; + // If chunksize is changed it may no longer be divisable by sidelen + if (carea_size % sidelen) sidelen = carea_size; - } s16 divlen = carea_size / sidelen; int area = sidelen * sidelen; |