diff options
-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) { |