summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:46:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:46:32 +0300
commit11caa7aeeb3a7b40823da8573576d2354b7504b5 (patch)
treefe34c20ea973e65104747b59675acf6363e7b5d2 /src/gui/viewport.cpp
parent0c4ed5a9594b849b436fca13c6992dee923915ed (diff)
downloadManaVerse-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.gz
ManaVerse-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.bz2
ManaVerse-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.xz
ManaVerse-11caa7aeeb3a7b40823da8573576d2354b7504b5.zip
Add missing const and static into gui classes.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 5206b7424..341af1f0b 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -277,7 +277,7 @@ void Viewport::_followMouse()
{
if (!gui)
return;
- const uint8_t button = gui->getMouseState(&mMouseX, &mMouseY);
+ const uint8_t button = Gui::getMouseState(&mMouseX, &mMouseY);
// If the left button is dragged
if (mPlayerFollowMouse && (button & SDL_BUTTON(1)))
{
@@ -302,7 +302,7 @@ void Viewport::_drawDebugPath(Graphics *const graphics)
if (!player_node || !userPalette || !actorManager || !mMap || !gui)
return;
- gui->getMouseState(&mMouseX, &mMouseY);
+ Gui::getMouseState(&mMouseX, &mMouseY);
static Path debugPath;
static Vector lastMouseDestination = Vector(0.0F, 0.0F);
@@ -1034,7 +1034,7 @@ void Viewport::returnCamera()
mCameraRelativeY = 0;
}
-void Viewport::validateSpeed() const
+void Viewport::validateSpeed()
{
if (!inputManager.isActionActive(static_cast<int>(
Input::KEY_TARGET_ATTACK)) && !inputManager.isActionActive(