diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-02 22:16:30 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-11-02 22:16:30 +0000 |
commit | a9a59f28594b87c8ac29e6739e34decd79f2fd2a (patch) | |
tree | 852c97d57b45996ff7019c2c172c21bc73695d90 /src/gui/viewport.cpp | |
parent | 557d8dfec843cc50f628782345fe2e660225622b (diff) | |
download | mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.gz mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.bz2 mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.xz mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.zip |
Fixed right-clicking on NPCs.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 9671e34f..14239094 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -381,7 +381,7 @@ void Viewport::mousePressed(gcn::MouseEvent &event) Being *being; FloorItem *floorItem; - if ((being = beingManager->findBeingByPixel(tilex, tiley)) && + if ((being = beingManager->findBeingByPixel(pixelx, pixely)) && being != player_node) { mPopupMenu->showPopup(event.getX(), event.getY(), being); |