diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-16 11:36:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-16 11:36:41 +0000 |
commit | f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1 (patch) | |
tree | 3642bc2e6eb1d05200c2c7434f309601e9db8016 /src/gui | |
parent | a208bc13b69e2c3d1ef69eb3db66fd6de8b40025 (diff) | |
download | mana-client-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.gz mana-client-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.bz2 mana-client-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.xz mana-client-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.zip |
Fixed compilation warning.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index f2e32973..01324a47 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -399,8 +399,8 @@ Viewport::mousePressed(gcn::MouseEvent &event) // Interact with some being // if ((being = beingManager->findBeing(tilex, tiley)) - int x = event.getX() + mPixelViewX; - int y = event.getY() + mPixelViewY; + int x = (int)((float) event.getX() + mPixelViewX); + int y = (int)((float) event.getY() + mPixelViewY); if ((being = beingManager->findBeingByPixel(x, y))) { switch (being->getType()) |