summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-06 00:20:40 -0700
committerIra Rice <irarice@gmail.com>2009-01-06 00:20:40 -0700
commitc38a213e2a70c00b338d9e3fe284a3e7ed336b44 (patch)
treecaac2f99c3c37a518af27b28c60c5b682842b318 /src/gui/minimap.cpp
parent6cf01b1bd92cfb9bb3b074b6a4976cbe99f965c2 (diff)
downloadmana-c38a213e2a70c00b338d9e3fe284a3e7ed336b44.tar.gz
mana-c38a213e2a70c00b338d9e3fe284a3e7ed336b44.tar.bz2
mana-c38a213e2a70c00b338d9e3fe284a3e7ed336b44.tar.xz
mana-c38a213e2a70c00b338d9e3fe284a3e7ed336b44.zip
Fixed the windows cbp file, deleted some files which we don't use, and
fixed a few compiler warnings noticed from building in windows. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index fc00ad18..fddd5199 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -84,8 +84,8 @@ void Minimap::draw(gcn::Graphics *graphics)
if (mMapImage->getWidth() > a.width ||
mMapImage->getHeight() > a.height)
{
- mapOriginX = ((a.width) / 2) - (player_node->mX * mProportion);
- mapOriginY = ((a.height) / 2) - (player_node->mY * mProportion);
+ mapOriginX = (int) (((a.width) / 2) - (player_node->mX * mProportion));
+ mapOriginY = (int) (((a.height) / 2) - (player_node->mY * mProportion));
const int minOriginX = a.width - mMapImage->getWidth();
const int minOriginY = a.height - mMapImage->getHeight();