aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-15 15:11:00 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-15 15:11:00 +0300
commite57754868f63d5c104a582c1d2c5d1885a87c049 (patch)
treebf293a38f2d70f946dfde9a4d8146abcaaa27f68
parent0c7e7f49980851c4290817dae7a9c1cdc4a93b65 (diff)
downloadminetest-e57754868f63d5c104a582c1d2c5d1885a87c049.tar.gz
minetest-e57754868f63d5c104a582c1d2c5d1885a87c049.tar.bz2
minetest-e57754868f63d5c104a582c1d2c5d1885a87c049.zip
Hopefully fixed msvc "'sqrt' : ambiguous call to overloaded function"
-rw-r--r--src/mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index aac2fc228..0018b9919 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1818,7 +1818,7 @@ void make_block(BlockMakeData *data)
vmanip.m_data[i] = MapNode(CONTENT_GRAVEL);
}
else if(noisebuf_ground_crumbleness.get(x,y,z) <
- -3.0 + MYMIN(0.1 * sqrt(MYMAX(0, -y)), 1.5))
+ -3.0 + MYMIN(0.1 * sqrt((float)MYMAX(0, -y)), 1.5))
{
vmanip.m_data[i] = MapNode(CONTENT_LAVASOURCE);
for(s16 x1=-1; x1<=1; x1++)