summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-02 22:16:30 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-11-02 22:16:30 +0000
commita9a59f28594b87c8ac29e6739e34decd79f2fd2a (patch)
tree852c97d57b45996ff7019c2c172c21bc73695d90
parent557d8dfec843cc50f628782345fe2e660225622b (diff)
downloadmana-client-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.gz
mana-client-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.bz2
mana-client-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.tar.xz
mana-client-a9a59f28594b87c8ac29e6739e34decd79f2fd2a.zip
Fixed right-clicking on NPCs.
-rw-r--r--ChangeLog4
-rw-r--r--src/gui/viewport.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a06bdf3e..4cad0bd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);