diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-09-21 18:09:05 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-09-21 18:09:05 -0600 |
commit | 034279ffe8c136698692cf4a524d2100dc946432 (patch) | |
tree | d32f532d0a455c86980a3b5c5ceaf8c17cc14629 /src/gui/viewport.cpp | |
parent | b2dc67e16477f688f369f15574aba8a85cb18a40 (diff) | |
download | mana-034279ffe8c136698692cf4a524d2100dc946432.tar.gz mana-034279ffe8c136698692cf4a524d2100dc946432.tar.bz2 mana-034279ffe8c136698692cf4a524d2100dc946432.tar.xz mana-034279ffe8c136698692cf4a524d2100dc946432.zip |
Fix an unused variable
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index a2ae684a..7010ced6 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -228,12 +228,12 @@ void Viewport::logic() { WindowContainer::logic(); - Uint8 button = SDL_GetMouseState(&mMouseX, &mMouseY); - if (!mMap || !player_node) return; #ifdef EATHENA_SUPPORT + Uint8 button = SDL_GetMouseState(&mMouseX, &mMouseY); + if (mPlayerFollowMouse && button & SDL_BUTTON(1) && mWalkTime != player_node->mWalkTime) { |