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 | |
parent | 557d8dfec843cc50f628782345fe2e660225622b (diff) | |
download | mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.gz mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.bz2 mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.xz mana-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.zip |
Fixed right-clicking on NPCs.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2008-11-02 Bjørn Lindeijer <bjorn@lindeijer.nl> + + * src/gui/viewport.cpp: Fixed right-clicking on NPCs. + 2008-11-01 Philipp Sehmisch <tmw@crushnet.org> * src/game.cpp, src7gui/menuwindow.cpp, src/gui/setup.cpp, 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); |