mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
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.
This commit is contained in:
parent
e7282816ff
commit
ffe291cb78
@ -90,11 +90,9 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
|
|||||||
int carea_size = nmax.X - nmin.X + 1;
|
int carea_size = nmax.X - nmin.X + 1;
|
||||||
|
|
||||||
// Divide area into parts
|
// Divide area into parts
|
||||||
if (carea_size % sidelen) {
|
// If chunksize is changed it may no longer be divisable by sidelen
|
||||||
errorstream << "Decoration::placeDeco: chunk size is not divisible by "
|
if (carea_size % sidelen)
|
||||||
"sidelen; setting sidelen to " << carea_size << std::endl;
|
|
||||||
sidelen = carea_size;
|
sidelen = carea_size;
|
||||||
}
|
|
||||||
|
|
||||||
s16 divlen = carea_size / sidelen;
|
s16 divlen = carea_size / sidelen;
|
||||||
int area = sidelen * sidelen;
|
int area = sidelen * sidelen;
|
||||||
|
Loading…
Reference in New Issue
Block a user