diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/viewport.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 61c17ac8..4d8ca717 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -295,6 +295,9 @@ void Viewport::_drawPath(Graphics *graphics, const Path &path) void Viewport::mousePressed(gcn::MouseEvent &event) { + if (event.getSource() != this) + return; + // Check if we are alive and kickin' if (!mMap || !player_node || !player_node->isAlive()) return; |