Commit 398d3f1e authored by Adriaan de Groot's avatar Adriaan de Groot 💬

Disambiguate sqrt() call on an integer argument

svn path=/trunk/KDE/kdegames/palapeli/; revision=1066563
parent 3d8c3872
......@@ -191,7 +191,7 @@ void Palapeli::Scene::finishLoading()
partAreaSize *= 1.3; //more space for each part
//step 2: place parts in a grid in random order
QList<Palapeli::Part*> partPool(m_parts);
const int xCount = floor(sqrt(partPool.count()));
const int xCount = floor(sqrt((float)partPool.count()));
for (int y = 0; !partPool.isEmpty(); ++y)
for (int x = 0; x < xCount && !partPool.isEmpty(); ++x)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment