Hopefully fixed msvc "'sqrt' : ambiguous call to overloaded function"

master
Perttu Ahola 2011-08-15 15:11:00 +03:00
parent 0c7e7f4998
commit e57754868f
1 changed files with 1 additions and 1 deletions

View File

@ -1818,7 +1818,7 @@ void make_block(BlockMakeData *data)
vmanip.m_data[i] = MapNode(CONTENT_GRAVEL); vmanip.m_data[i] = MapNode(CONTENT_GRAVEL);
} }
else if(noisebuf_ground_crumbleness.get(x,y,z) < 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); vmanip.m_data[i] = MapNode(CONTENT_LAVASOURCE);
for(s16 x1=-1; x1<=1; x1++) for(s16 x1=-1; x1<=1; x1++)