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 | |
parent | a208bc13b69e2c3d1ef69eb3db66fd6de8b40025 (diff) | |
download | mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.gz mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.bz2 mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.xz mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.zip |
Fixed compilation warning.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ 2008-04-16 Dennis Friis <peavey@placid.dk> - * src/gui/browserbox.cpp: Fix a basic_string::at sometimes being out of range - in BrowserBox::draw when checking for line separators. + * src/gui/browserbox.cpp: Fix a basic_string::at sometimes being out + of range in BrowserBox::draw when checking for line separators. 2008-04-16 Bjørn Lindeijer <bjorn@lindeijer.nl> @@ -9,6 +9,7 @@ src/gui/scrollarea.h, src/gui/textbox.h: Restored the text wrapping in TextBox, since it was based on overriding a method that is no longer virtual in Guichan 0.8.0. + * src/gui/viewport.cpp: Fixed compilation warning. 2008-04-15 David Athay <ko2fan@gmail.com> 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()) |