Fixed compilation problem with gcc

This commit is contained in:
Xawotihs@gmail.com
2012-03-21 21:59:18 +00:00
parent bdec6c6b7d
commit 2a3f998034
+1 -1
View File
@@ -245,7 +245,7 @@ bool SimpleMenu::CheckUserInput(JButton key)
{ {
if (mObjects[i]->getTopLeft(top, left)) if (mObjects[i]->getTopLeft(top, left))
{ {
distance2 = unsigned int((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;