fixed compiler warnings found on Windows build
This commit is contained in:
@@ -292,8 +292,8 @@ void GuiCombat::shiftRight( DamagerDamaged* oldActive )
|
|||||||
|
|
||||||
bool GuiCombat::didClickOnButton( Pos buttonPosition, int& x, int& y)
|
bool GuiCombat::didClickOnButton( Pos buttonPosition, int& x, int& y)
|
||||||
{
|
{
|
||||||
int x1 = buttonPosition.x - MARGIN;
|
int x1 = static_cast<int>(buttonPosition.x - MARGIN);
|
||||||
int y1 = buttonPosition.y;
|
int y1 = static_cast<int>(buttonPosition.y);
|
||||||
int x2 = static_cast<int>(buttonPosition.x + buttonPosition.width);
|
int x2 = static_cast<int>(buttonPosition.x + buttonPosition.width);
|
||||||
int y2 = static_cast<int>(buttonPosition.y + buttonPosition.height);
|
int y2 = static_cast<int>(buttonPosition.y + buttonPosition.height);
|
||||||
if ( (x >= x1 && x < x2) && (y >= y1 && y < y2))
|
if ( (x >= x1 && x < x2) && (y >= y1 && y < y2))
|
||||||
|
|||||||
Reference in New Issue
Block a user