diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-22 00:02:09 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-22 00:02:09 -0700 |
commit | 4406b2fd90a5d4656bc923bf5c751e4c5250a0d2 (patch) | |
tree | bf25813b8711fb1dd51a77104a63a9c9647a60df /src/gui/viewport.cpp | |
parent | 7c925545419eeda0b0b26b290a9ec0412960fbd8 (diff) | |
download | mana-4406b2fd90a5d4656bc923bf5c751e4c5250a0d2.tar.gz mana-4406b2fd90a5d4656bc923bf5c751e4c5250a0d2.tar.bz2 mana-4406b2fd90a5d4656bc923bf5c751e4c5250a0d2.tar.xz mana-4406b2fd90a5d4656bc923bf5c751e4c5250a0d2.zip |
Cleanup some popup-related code and make sure BeingPopup is included
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 543082e7..b3d0b059 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -478,7 +478,10 @@ void Viewport::mouseMoved(gcn::MouseEvent &event) const int y = (event.getY() + (int) mPixelViewY); mSelectedBeing = beingManager->findBeingByPixel(x, y); - mBeingPopup->setBeing(getMouseX(), getMouseY(), mSelectedBeing); + if (Player *p = dynamic_cast<Player*>(mSelectedBeing)) + { + mBeingPopup->show(getMouseX(), getMouseY(), p); + } } void Viewport::toggleDebugPath() |