Added explicit float to int cast to fix compiler warning
This commit is contained in:
parent
fbb7b59469
commit
7c18ce1613
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ namespace gui {
|
|||
|
||||
if (length > RETURN_SPEED)
|
||||
{
|
||||
loc.x -= x_diff*(RETURN_SPEED/length);
|
||||
loc.y -= y_diff*(RETURN_SPEED/length);
|
||||
loc.x -= static_cast<Sint16>(x_diff*(RETURN_SPEED/length));
|
||||
loc.y -= static_cast<Sint16>(y_diff*(RETURN_SPEED/length));
|
||||
set_location(loc);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue