summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-16 11:36:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-16 11:36:41 +0000
commitf2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1 (patch)
tree3642bc2e6eb1d05200c2c7434f309601e9db8016
parenta208bc13b69e2c3d1ef69eb3db66fd6de8b40025 (diff)
downloadmana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.gz
mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.bz2
mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.tar.xz
mana-f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1.zip
Fixed compilation warning.
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/viewport.cpp4
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ec4e2ad..919b00fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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())