From 36eeb46446039147b64a4552242002beaaec680d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 May 2011 03:33:07 +0300 Subject: Fix compilation warnings. --- src/gui/viewport.cpp | 5 ----- 1 file changed, 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(mPixelViewX); @@ -310,7 +308,6 @@ void Viewport::_drawDebugPath(Graphics *graphics) static_cast(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(*it); if (being && being != player_node) { - const Vector &beingPos = being->getPosition(); - int radius = being->getCollisionRadius(); Path beingPath = being->getPath(); _drawPath(graphics, beingPath, userPalette->getColorWithAlpha( -- cgit v1.2.3-70-g09d2