summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-05 03:33:07 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-05 03:33:07 +0300
commit36eeb46446039147b64a4552242002beaaec680d (patch)
treeb791f1b65accd795cd18951874fbebfc7150c486 /src
parent5a3044c07571df665fb6e5d886f44db9348414d6 (diff)
downloadplus-36eeb46446039147b64a4552242002beaaec680d.tar.gz
plus-36eeb46446039147b64a4552242002beaaec680d.tar.bz2
plus-36eeb46446039147b64a4552242002beaaec680d.tar.xz
plus-36eeb46446039147b64a4552242002beaaec680d.zip
Fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index b064419ac..dfc4b217b 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -292,8 +292,6 @@ void Viewport::_drawDebugPath(Graphics *graphics)
// Get the current mouse position
SDL_GetMouseState(&mMouseX, &mMouseY);
- // Prepare the walkmask corresponding to the protocol
- unsigned char walkMask = Map::BLOCKMASK_WALL;
static Path debugPath;
static Vector lastMouseDestination = Vector(0.0f, 0.0f);
const int mousePosX = mMouseX + static_cast<int>(mPixelViewX);
@@ -310,7 +308,6 @@ void Viewport::_drawDebugPath(Graphics *graphics)
static_cast<int>(playerPos.y - 32) / 32,
mousePosX / 32, mousePosY / 32, 0, 500);
-
lastMouseDestination = mouseDestination;
}
_drawPath(graphics, debugPath, userPalette->getColorWithAlpha(
@@ -326,8 +323,6 @@ void Viewport::_drawDebugPath(Graphics *graphics)
Being *being = dynamic_cast<Being*>(*it);
if (being && being != player_node)
{
- const Vector &beingPos = being->getPosition();
- int radius = being->getCollisionRadius();
Path beingPath = being->getPath();
_drawPath(graphics, beingPath, userPalette->getColorWithAlpha(