diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 16:29:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 16:29:31 +0300 |
commit | 5b0c6c5c95645813f96ea413b1c14f2ffc18a481 (patch) | |
tree | 15f9a59ac6c585a2391ab5713f8ce2261a105928 /src/gui | |
parent | 7fa78a35307227453ab55c7452e348a40cd41d65 (diff) | |
download | mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.gz mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.bz2 mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.tar.xz mv-5b0c6c5c95645813f96ea413b1c14f2ffc18a481.zip |
Add strong typed bool type AllPlayers.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index fd9166c33..5bee2f8ff 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -379,7 +379,7 @@ bool Viewport::openContextMenu(const MouseEvent &event) std::vector<ActorSprite*> beings; const int x = mMouseX + mPixelViewX; const int y = mMouseY + mPixelViewY; - actorManager->findBeingsByPixel(beings, x, y, true); + actorManager->findBeingsByPixel(beings, x, y, AllPlayers_true); if (beings.size() > 1) popupMenu->showPopup(eventX, eventY, beings); else @@ -771,7 +771,7 @@ void Viewport::mouseMoved(MouseEvent &event) const int y = mMouseY + mPixelViewY; ActorType::Type type = ActorType::Unknown; - mHoverBeing = actorManager->findBeingByPixel(x, y, true); + mHoverBeing = actorManager->findBeingByPixel(x, y, AllPlayers_true); if (mHoverBeing) type = mHoverBeing->getType(); if (mHoverBeing |