diff options
-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()) |