summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-11-30 17:47:10 -0700
committerIra Rice <irarice@gmail.com>2008-11-30 17:47:10 -0700
commit76ec01b8d071fb2ecdb943bd74156e0bd92e1b09 (patch)
tree19d22db823ef622644cde549b9855afb64213f73 /src
parent124968ec059f75b47b605ab1218e984e8cb15f48 (diff)
downloadmana-client-76ec01b8d071fb2ecdb943bd74156e0bd92e1b09.tar.gz
mana-client-76ec01b8d071fb2ecdb943bd74156e0bd92e1b09.tar.bz2
mana-client-76ec01b8d071fb2ecdb943bd74156e0bd92e1b09.tar.xz
mana-client-76ec01b8d071fb2ecdb943bd74156e0bd92e1b09.zip
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 <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/minimap.cpp6
1 files 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));
}
}