diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-05 03:33:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-05 03:33:07 +0300 |
commit | 36eeb46446039147b64a4552242002beaaec680d (patch) | |
tree | b791f1b65accd795cd18951874fbebfc7150c486 /src/gui/viewport.cpp | |
parent | 5a3044c07571df665fb6e5d886f44db9348414d6 (diff) | |
download | manaverse-36eeb46446039147b64a4552242002beaaec680d.tar.gz manaverse-36eeb46446039147b64a4552242002beaaec680d.tar.bz2 manaverse-36eeb46446039147b64a4552242002beaaec680d.tar.xz manaverse-36eeb46446039147b64a4552242002beaaec680d.zip |
Fix compilation warnings.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 5 |
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( |