From f2753bb01b8c1e1c5b487dcf08032e4e4f16c9a1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 16 Apr 2008 11:36:41 +0000 Subject: Fixed compilation warning. --- ChangeLog | 5 +++-- src/gui/viewport.cpp | 4 ++-- 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 - * 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 @@ -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 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()) -- cgit v1.2.3-70-g09d2