mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Expand usable range of fill_ratio to about 2.3e-10 (#16026)
This commit is contained in:
@@ -163,7 +163,7 @@ void Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
|
|||||||
deco_count = deco_count_f;
|
deco_count = deco_count_f;
|
||||||
} else if (deco_count_f > 0.0f) {
|
} else if (deco_count_f > 0.0f) {
|
||||||
// For very low density calculate a chance for 1 decoration
|
// For very low density calculate a chance for 1 decoration
|
||||||
if (ps.range(1000) <= deco_count_f * 1000.0f)
|
if (ps.next() <= deco_count_f * PcgRandom::RANDOM_RANGE)
|
||||||
deco_count = 1;
|
deco_count = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user