From 76ec01b8d071fb2ecdb943bd74156e0bd92e1b09 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 30 Nov 2008 17:47:10 -0700 Subject: Fixed a problem noticed by Jarvellis. Apparently a while ago, to suppress a compiler warning, I added in some typecasts, but did them in the wrong spot, so it broke TMW's minimaps, but still worked on whole number proportions. This fixes that. Signed-off-by: Ira Rice --- src/gui/minimap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 8b4dd9c3..ec4675f5 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -125,11 +125,11 @@ void Minimap::draw(gcn::Graphics *graphics) continue; } - const int offset = (dotSize - 1) * (int) mProportion; + const int offset = (int) ((dotSize - 1) * mProportion); graphics->fillRectangle(gcn::Rectangle( - (being->mX * (int) mProportion) + mapOriginX - offset, - (being->mY * (int) mProportion) + mapOriginY - offset, + (int) (being->mX * mProportion) + mapOriginX - offset, + (int) (being->mY * mProportion) + mapOriginY - offset, dotSize, dotSize)); } } -- cgit v1.2.3-70-g09d2