unsigned int from float warning treated as error fix.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user