unsigned int from float warning treated as error fix.

This commit is contained in:
omegablast2002@yahoo.com
2012-03-21 11:28:43 +00:00
parent cb8af6d6c0
commit f33fe0298e

View File

@@ -241,7 +241,7 @@ bool SimpleMenu::CheckUserInput(JButton key)
{ {
if (mObjects[i]->getTopLeft(top, left)) if (mObjects[i]->getTopLeft(top, left))
{ {
distance2 = (top - y) * (top - y) + (left - x) * (left - x); distance2 = unsigned int((top - y) * (top - y) + (left - x) * (left - x));
if ( (distance2 < minDistance2) ) if ( (distance2 < minDistance2) )
{ {
minDistance2 = distance2; minDistance2 = distance2;